Python Files worked well but now giving error in IDLE 3.2 -


i wrote python code 6 months ago on linux system. worked perfectly, installed idle 3.3 mac , i'm getting lot of errors "inconsistent use of tabs , spaces in indentation" invalid syntax: on print command etc...

does 1 have idea can wrong?

"inconsistent use of tabs , spaces in indentation" means indentation uses combination of tabs , spaces. change indentation tabs or spaces fix this.

in python 3+ print no longer keyword. it's function, have call so:

print("hello world!") 

with argument within parenthesis.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -