(Choose 1 answer)
What is the purpose of the following Python code?
fhand = open('mbox.txt')x = 0 for line in fhand:x = x + 1 print x
A. Remove the leading and trailing spaces from each line in mbox.txt
B. Count the lines in the file 'mbox.txt'
C. Convert the lines in mbox.txt to upper case
D. Reverse the order of the lines in mbox.txt
Finish
45