66.0k views
3 votes
Assume that name has been declared suitably for storing names (like "amy" , "fritz" and "moustafa") write some code that reads a value into name then prints the message "greetings, name! ! !" where name is replaced the value that was read into name. for example, if your code read in "hassan" it would print out "greetings, hassan! ! !". **please ignore the spaces between the exclamation marks( ! ! ! )**

User DonQ
by
8.8k points

1 Answer

5 votes
name = "Bob"
# or you can prompt the user to enter their name:
# name = input("What's your name? ")

print("greetings," , name)