print("What is your name:")
the_name= input()
print("How old are you?")
the_age= int(input())
if the_age>=18:
print("What is your major in university?")
major= input()
print("Really nice")
elif the_age<=18 :
print(f"you said your name is {the_name}, is that right? ")
the_answer= input()
print("Good job") if the_answer is True else print(None)
else:
print("Have a nice day")
I want to titlize “the_name” but wherever i put the “.title” it gives error. Could someone help me how can i titlize the name given by the user?
Thanks
New contributor
Sobhan Kheyri is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.