+ 1

I'm learning read function in ptthon3 and practiced this code.

But I cannot figure out the exact error of this code...can u please tell me👇 https://code.sololearn.com/cKJEXnVKH4yX/?ref=app

20th Aug 2020, 6:33 AM
riya charles
riya charles - avatar
5 Answers
+ 2
It is saying that the tuple has no attribute 'read'
20th Aug 2020, 6:55 AM
Onoh Brothers
Onoh Brothers - avatar
+ 2
I hope it helps
20th Aug 2020, 6:55 AM
Onoh Brothers
Onoh Brothers - avatar
+ 2
Do you forget to open the file firstly?file = open("....","..")Then you can not test your code here.
20th Aug 2020, 7:39 AM
HBhZ_C
HBhZ_C - avatar
+ 1
Ok...I understand thank u all for telling and helping
20th Aug 2020, 8:28 AM
riya charles
riya charles - avatar
+ 1
U are welcome
20th Aug 2020, 8:39 AM
Onoh Brothers
Onoh Brothers - avatar