+ 1

I got a error when trying read a file

Hey guys! I'm learning code on python and trying to make a code that read a file and print it on screen. My code is that: try: numeros = open("numeros_sena.txt","r") except: print("Houve um erro") raise print (numeros) When I run it I got the message error: "<open file 'numeros_sena.txt', mode 'r' at 0x7f7cc08cf4b0>" Can some one help me to fix this?

21st Nov 2017, 6:37 PM
Natalia C. Amorim
Natalia C. Amorim - avatar
1 Antwort
+ 2
can you post a your code in text file so i can see it
21st Nov 2017, 6:45 PM
jay