Coding Task: 04.02 Greetings To You

Merry Christmas! Or is it Happy Halloween? April Fools? Who knows!

Your Task

In the editor below, fill in the blanks (________) so that the program greets the user with a special greeting!

Python Reference Sheet

Remember to use the Python reference sheet to help you with your code! Click on one of the buttons below:

Requirements

  • The program should run without any errors.
  • The program should ask the user to enter a greeting and then display the text <greeting> to you! onto the screen, where <greeting> is replaced with whatever the user typed in.
  • Hint: Don’t just type in a greeting in the code because that will always print whatever you typed in, not the user! You will need to use a variable to store what the user types in for their greeting!

Example

Below is an example of how the program should run if you entered Good morning as your greeting:

Enter a greeting: Good morning
Good morning to you!
Scroll to Top