Computer Science, asked by kchandana20052001, 7 months ago

Y
You can write any code you like in the window below. There are three files loaded
and ready for you to open if you want to do file processing: "mbox-short.txt",
"romeo.txt", and "words.txt".
Run Python3
Reset Code
© Execution complete.
1 fh = open('mbox-short.txt')
2
3 count =
4 for line in th:
5 count = count + 1
6
line
count)​

Answers

Answered by pinkisingh804452
0

Answer:

fohxkbckxkvxvvmvhkIffkfohg

Answered by nabambikag1997
0

Answer:

fh = open("romeo.txt", "r")

count = 0

for line in fh:

   print(line.strip())

   count = count + 1

print(count,"Lines")

nh = open("words.txt", "r")

count = 0

for line in nh:

   print(line.strip())

   count = count + 1

print(count,"Lines")

ah = open("mbox-short.txt", "r")

count = 0

for line in ah:

   print(line.strip())

   count = count + 1

print(count,"Lines")

Explanation:

Similar questions