0
Tell me my friends why this code does not work? And do not give (wellcom) or (goodbye)? what is the problem ?
2 Respostas
+ 2
There's nothing wrong with the code. Just enter your inputs in separate lines.
girl
42
+ 1
try like this way :
print ("girl or boy : ")
a= str(input())
print("you said: " + a)
print("how old are you")
b = int(input())
print("your old :" +str(b))
if (a== "girl" and b>=18):
print ("wellcom")
else:
print ("goodbye")
input your answers: like
girl
25