My code is here:
import time
idk = input("Hey whats ur name dude ")
print(idk)
time.sleep(1.2)
print("Hmmmm")
time.sleep(1.4)
print("thats a cool name dude")
time.sleep(2)
print("hey", idk)
time.sleep(1.1)
print("uh")
time.sleep(1.4)
dot = input("you know, the last time I actually coded was like a year ago :/. ya think i can still code? (yes/no/maybe) ")
if dot == "yes":
time.sleep(0.7)
print("thx. ill try my best")
if dot == "no":
time.sleep(0.7)
print("ok. i will reteach myself i guess")
if dot == "maybe":
time.sleep(0.7)
print("we will see i guess :]")
else:
print("RESPOND WITH WHAT I TELL U TO RESPOND WITH U IDIOT >:-( ")
In the final part, there is an else statement. whenever I run this and I choose the "yes" or "no" option the else statement appears even though it is not supposed to. By the way, this doesn't happen in the "maybe" option. I don't think that this is an indentation error. I looked through it. I am really confused.
if. Try useelifinstead manyifs. Try this: datacamp.com/community/tutorials/…elseis only connected toif dot == "maybe":, the other twoifs are entirely separate conditions.