To reduce line.
Also '\n' is a string break for python, you can called it 'enter'.
Code:
print ("Hello, nice to meet you. What's your name ?")
name = input()
print("Hi, " + name+ "\n That's a beautiful name. \n As for me, my name is Ali, I am a boy.\n Are you a boy as well ?")
while True:
prompt1 = input()
if prompt1 == "yes":
Leave a comment: