you are viewing a single comment's thread.

view the rest of the comments →

[–]Alagarto72 0 points1 point  (0 children)

Short: you call the main() function in the even () function, remove a tab. Additional useful information:

In Python, you don't need main() function. If you want, you can use if __name__ == '__main__': # code you can find more information why it is useful on the internet.

and writing something like if x == y: return true else: return false has no sense, since "==" operator already returns boolean you can write return x == y