6. Test 1 – Ask and tell

Main Task

Write a program that will:

  • Prompt and ask for name and favourite colour.
  • Returns a message like the example shown below
“Hello name. My favourite colour is also colour.”

Extension Task

Extend your program so it asks for first name and surname separately, and prints the users full name, as well as their favourite colour

Hints

  • You will need to use the input function to read in data from the user
  • You will need suitable variables to store the input
  • Use a single print statement to output the message