Answer to Question #286305 in Python for Jovelyn

Question #286305

Create a python program of this output.


Output:

Enter your First name: Curry

Enter your Middle name: Klay

Enter your Last name: Ramos

Is it am or pm?: am

Good morning, Curry Klay Ramos! Have a great day ahead.

Do you want to try again?: Y

Enter your First name: Curry

Enter your Middle name: Klay

Enter your Last name: Ramos

Is it am or pm?: pm

Good night, Curry Klay Ramos! You deserve to take some rest.

Do you want to try again?: Y

Thank you!


1
Expert's answer
2022-01-10T11:23:08-0500
first_name = input('Enter your First name')
middle_name = input('Enter your Middle name')
last_name = input('Enter your Last name')
q_1 = input('Is it am or pm?: ')
if q_1 = 'am':
    print('Good morning, {} {} {}! Have a great day ahead').format(first_name, middle_name, last_name)
elif q_1 = 'pm':
    print('Good afternoon, {} {} {}! Have a great day ahead').format(first_name, middle_name, last_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