'tuple' object has no attribute 'read'
I am trying to create a program that will read from a file on my computer. The file consists of simply door numbers from 1-150 within a bracket. The error returns at line 6. print(file.read()) your text#opening_a_file.py your textfile = "This PC/C:/Python Programming/Doors.txt","r" your textprint("read function: ") your textprint(file.read()) your textprint() your textfile.seek(0) I tried… Read More 'tuple' object has no attribute 'read'