Aug-02-2019, 01:18 PM
Hello guys!
I am currently working in a Little test again, which at one step requires an imput, simple, right? Well I have two variables, a OwnerMale and OwnerFemale, which are both set in False when you execute the .py
My question is this one: Can I make my program have a list of Names which when you write them down in imput, the program searches for the list of names and basing on the name sets OwnerMale or OwnerFemale as true? And if this is posible, could I also include a question calling for confirmation if the name is female and basing on "Yes" or "No" set the OwnerMale and OwnerFemale accordingly? Thank you.
Here's my code
I am currently working in a Little test again, which at one step requires an imput, simple, right? Well I have two variables, a OwnerMale and OwnerFemale, which are both set in False when you execute the .py
My question is this one: Can I make my program have a list of Names which when you write them down in imput, the program searches for the list of names and basing on the name sets OwnerMale or OwnerFemale as true? And if this is posible, could I also include a question calling for confirmation if the name is female and basing on "Yes" or "No" set the OwnerMale and OwnerFemale accordingly? Thank you.
Here's my code
if Male == True and IsMale == True: print("My Name has been set, i'm Programmed a Male Bot, what is your name?") OwnerName = input("Write your name.")