Oh excellent, ok. Can you give me a very brief example of how an elif would work?
Ok, I think I got it, but I don't know why it adds the next user input line of code when I don't want it to yet?
Ok, I think I got it, but I don't know why it adds the next user input line of code when I don't want it to yet?
first_name = input("What is your name? ") if first_name == "": print("Please enter your name: ") elif first_name.lower() == "steve": print("You are the instructor") else: print("Hi " + first_name + " You are a student") print() birth_year = input("What year were you born? ")
Output:What is your name?
Please enter your name:
What year were you born?