Answer to Question #100521 in Python for angie

Question #100521
Write a program that asks the user to enter a name, and then prints Nice to meet you NAME. Your program should repeat these steps until the user inputs Nope.
1
Expert's answer
2019-12-16T14:47:12-0500
while True:
    user_name = input('Enter your name, please. If you want to stop program, enter "Nope": ')
    if user_name == 'Nope':
        break
    print('Nice to meet you {}'.format(user_name))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS