I run following code but it gives error. why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I run following code but it gives error. why?

for loop https://code.sololearn.com/c1Gl9iFi3y12/?ref=app

11th Aug 2018, 6:47 AM
Saeed Mozaffari
Saeed Mozaffari - avatar
3 Answers
+ 6
Because there isn't a file named "lines.txt"...
11th Aug 2018, 7:22 AM
Yash✳️
Yash✳️ - avatar
+ 5
Hey bro you are using mobile not pc.there is no directory or file which is named lines.txt for better understanding code on pc.
11th Aug 2018, 9:08 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
Maninder Singh Yes, bro i run this code in pycharm on pc not in mobile.
11th Aug 2018, 9:16 AM
Saeed Mozaffari
Saeed Mozaffari - avatar