web hosting and development forums
Web Design and Development Forums Archive


Index - Python programming forum

error


Post reply

Unindent does not match any outer indentation level ? it means what ? I'm getting error and i can't spot it lol
all lines in a (function, class, method, if-block, for-block, while-block, try-block) need to be indented the same level Kopilman, and avoid tabs. use spaces instead because the python interpreter considers a tab to be 8 spaces, and a lot of editors consider it to be 4
Same level = same amount of "space" ?
Kopilman, yes
I just fixed the problem by adding 1 space to each if Nice
Python is definitely space-sensitive
Lol
It bites you in the ass when you have mixed spaces and tabs, and open it with a different editor




Dubai Forum | Paris Forum | Webmaster Forum | Vegan Forum | Brisbane Forum | 3D Forum | Jobs in Dubai | Jobs in London | London UK Classifieds
Archive script by RedHo.com