+ 1
I’m getting a blank screen while compiling this code, can any one help me with what’s wrong???
#simple python bot x = input ("say hi") gend = "" def gender(): gend = input("your gender?(male or female)") return ; def user_name(): user = input("enter your name ?") return ; if x == "hi": user_name() gender() if gend == "male": print ("hello mr.",user) elif gend == "female": print ("hello mrs.",user) elif x == "bye": print ("bye")
1 Antwort
+ 2
Someone’s already helped you with that.
https://www.sololearn.com/discuss/1639474/?ref=app