Invalid literal python fortune teller

def My_Fortune():
    color = int(input("Select a Color: red, blue, yellow, or green: "))
    if color == "red":
        number = int(input("Select a number: 1, 3, 5, or 7: "))
        if number == 1:
            print("You will be forever alone")
        elif number == 3:
            print("You will get very lucky very soon")
        elif number == 5:
            print("The police will be searching for you shortly")
        elif number == 7:
            print("You will get you dream job")
            print("Invalid Request")

Im getting invalid literal for int() with base 10: 'red'

Read more here:

Content Attribution

This content was originally published by slyzzle at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: