+ 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")

30th Dec 2018, 2:19 PM
P Kushal
P Kushal - avatar
1 Odpowiedź
+ 2
Someone’s already helped you with that. https://www.sololearn.com/discuss/1639474/?ref=app
30th Dec 2018, 2:52 PM
Diego
Diego - avatar