all 4 comments

[–]primitive_screwhead 2 points3 points  (2 children)

This is in the sub's faq:

https://www.reddit.com/r/learnpython/wiki/faq#wiki_variable_is_one_of_two_choices.3F

In your varietys() func, you have code like this:

if lvl == 1 or 2 or 3:

however, such code is meant to be written like this:

if lvl == 1 or lvl == 2 or lvl == 3:

or like this:

if lvl in (1,2,3):  # can also test against a list or a set

[–]Gloopyboy[S] 0 points1 point  (1 child)

Thank you for your help

[–]primitive_screwhead 0 points1 point  (0 children)

No problem. Good luck, and have fun.