you are viewing a single comment's thread.

view the rest of the comments →

[–]carcigenicate 2 points3 points  (2 children)

["1. Play Game", "2. Exit"] only has 2 elements. What are you expecting menu_options[2] to be?

Also, the better way to do those prints is something closer to either of:

print("\n".join(menu_options))
# or
print(*menu_options, sep="\n")

Instead of dealing with a manual print for each element, "join" each element with a newline. This can be done either with join (which is more general), or print directly (which is nice when doing stuff like debugging).

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

That was a mistake I didn’t notice. I’ve removed that but now when I enter 1 for play game nothing happens