Python: NameError: name 'TRUE' is not defined

Trabla: Python: NameError: name 'TRUE' is not defined

Trabla Code:

if user_exist == TRUE:
    print 'User exists'


Solving:

if user_exist == True:
    print 'User exists'


https://docs.python.org/2/library/constants.html    

No comments:

Post a Comment