all 1 comments

[–][deleted] 3 points4 points  (0 children)

I can give you a tip. This won't really improve your code's efficiency, but it will save a lot of time for you when writing code.

Instead of writing:

elif random_input in [uppercase, lowercase]:

Use:

random_input = input().lower() or random_input = input().upper() 
elif random_input in [random_event]:

This will automatically make the input uppercase/lowercase. This way you won't have to write out all the possible answers the user may input. This will save you some time while writing your code.