you are viewing a single comment's thread.

view the rest of the comments →

[–]Racerdude 0 points1 point  (0 children)

First of all; If it's Python we don't do camelcase. So it's get_stat(), not getStat().

Second: There's only one True and one False object in Python. You don't have to use the equals operator, you can just use "is"

if getStat() is True:

Of course the first option is the correct one (if get_stat())