+ 1

python error - declaring variables

i'm using the geany interpreter and it often says that some functions need declaring even though they don't for instances f.read() even though i've declared the variable f, it says that read is a variable and also needs declared. how can i fix this?

19th Dec 2016, 8:56 AM
Michael Bosher
Michael Bosher - avatar
2 Respuestas
+ 3
it would be much easier if you could provide us with the code you refer to. This lets us examine it and debug it ourselves. Thanks in advance. I'll 'follow' this to give you a quick reply later on. Dr.
19th Dec 2016, 10:27 AM
Tristan McCullen
Tristan McCullen - avatar
0
Thank you. At the moment i'm going back to basics and just learning the syntax but once i start writting code again, i'll post if the same problem as before occurs
22nd Dec 2016, 11:28 AM
Michael Bosher
Michael Bosher - avatar