Day 5 - 100 Days of Code: If statements + Else, how to stop program from executing 'else' after if already answered

Question:
Please teach me how to stop the program from printing ‘else’ function after the result (“You’re Korg!!”) printed

Tutorial number: Day 5

print("Marvel Movie Character Creator")
print("--")
ID1=input("Do you like hanging around? ")
if ID1=="no":
  print("Then you're not Spider-man")
  ID2=input("Do you have 'gravelly' voice? ")
  if ID2=="no":
    print("Aww,then you're not Korg")
    ID3=input("Do you often feel 'Marvelous'? ")
    if ID3=="yes":
      print("Aha! You're Captain Marvel! Hi!")
  if ID2=="yes":
    print("You're Korg!!")
if ID1=="yes":
  print("Then you're Spider-man!")
else:
  print("Hmmm maybe you're not fit to be a Hero afterall :(")

3 posts were merged into an existing topic: Day 005 - Project 5 : “Which character are you?” Generator

No prob, happy to help :smiley:

Hey @STaera - if I helped you, mark my post as a Solution.

I actually don’t know how to do it, never done it before, I think it’s something to do with the three dots on every post

Also, BTW welcome to the community :smiley:

1 Like

love to but how do i mark your reply as solution/mark this topic as “solved”?

On the comment that solves your problem, press the “Solution Button”.