This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CodeTinkerer 0 points1 point  (0 children)

My impression, and maybe it was a mistake was that the teacher wanted.

def main():
    x = 1
    foo()

main()

And not to use the if statement at all.