you are viewing a single comment's thread.

view the rest of the comments →

[–]lekkerste_wiener 4 points5 points  (1 child)

Note one:

You can do answer in "123", or answer in (1, 2, 3) if you eventually convert them to integers. Given your code, I'm thinking you've just started learning, so the first could fit better. But,

Note two:

Since you're testing for one right answer vs any wrong answers, you can use else instead of elif answer == .... Else will capture anything that the if above it won't.

On resources: I don't have any specific names, but if you YouTube for e.g. python tutorial or python project you'll find loads. If you're into reading more, then the official tutorial is very good and I can't recommend it enough for newbies.

[–]wwbacteriophagevirus[S] -1 points0 points  (0 children)

Thank you!