What will the value of z be, and why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

What will the value of z be, and why?

def XXX(): S= open('ELEC.TXT', 'R') f= S.read() Z= count=0 for i in Z: count = count + 1 print(count)

21st Aug 2021, 7:03 AM
Pops Latina
2 Answers
+ 9
Please don't put your code in the heading: it messes the indentation and is not testable. Rather put it in a playground script and link it here. :)
21st Aug 2021, 7:11 AM
Lisa
Lisa - avatar
+ 5
the code is incorrect try running in code playground
21st Aug 2021, 7:09 AM
Prashanth Kumar
Prashanth Kumar - avatar