Hello,
I tried to make a simple program that interacts with the user and asks about his gender. However, I cannot seem to make it work past line 7. Could someone help me please ? Thanks a lot :)
print ("Hello, nice to meet you. What's your name ?")
name = input()
print ("Hi, " + name)
print ("That's a beautiful name.")
print ("As for me, my name is Ali, I am a boy.")
print ("Are you a boy as well ?")
while True:
prompt1 = input()
if prompt1 == "yes":
print("Hey bro")
elif prompt1 =="no":
print ("Hi sis")
else:
print ("Huh")
I tried to make a simple program that interacts with the user and asks about his gender. However, I cannot seem to make it work past line 7. Could someone help me please ? Thanks a lot :)
print ("Hello, nice to meet you. What's your name ?")
name = input()
print ("Hi, " + name)
print ("That's a beautiful name.")
print ("As for me, my name is Ali, I am a boy.")
print ("Are you a boy as well ?")
while True:
prompt1 = input()
if prompt1 == "yes":
print("Hey bro")
elif prompt1 =="no":
print ("Hi sis")
else:
print ("Huh")
Comment