The contents of a text file …
CBSE, JEE, NEET, CUET
Question Bank, Mock Tests, Exam Papers
NCERT Solutions, Sample Papers, Notes, Videos
The contents of a text file named 'fracture.txt' is as shown below:
Do you dare stay out, Do you dare go in
How much can you lose, How much can you win
And if you go in, should you turn left or right
You will get so confused that you will start in to race
What will be the output of the following code?
fin = open('fracture.txt') x = 0 for line in fin: words=line.split() for w in words: if len(w)>x:
x = len(w)
print(x)
Posted by Rohit Maurya Xii B 2 years, 5 months ago
- 0 answers
ANSWER
Related Questions
Posted by Hanni Pham 1 year, 1 month ago
- 0 answers
Posted by Syedali Fathima 1 year, 3 months ago
- 1 answers
Posted by Priya Shukla 1 year, 3 months ago
- 1 answers
Posted by Kandeepan Jothivel 1 year, 4 months ago
- 2 answers
Posted by Prawar Narang 1 year, 3 months ago
- 1 answers
Posted by Hanni Pham 1 year, 1 month ago
- 1 answers
myCBSEguide
Trusted by 1 Crore+ Students
Test Generator
Create papers online. It's FREE.
CUET Mock Tests
75,000+ questions to practice only on myCBSEguide app