Section 2 Practice Tasks

End of Section Practice Tasks

1. Ask a user to enter their favourite colour and their favourite food and then output a silly response. You will need two separate input lines and to include a print line that uses both strings and variables, broken up by commas. For example the completed program could look like:

input7


 2. Create a program that asks the user a trivia question such as: “What is the capital of Botswana?”. Then output the correct answer with their response too. For example:

screenshot-2016-10-02-at-6-47-07-pm


3. Create a program that asks the user how many minutes it takes them to go to school or work. Then print an appropriate response.


< Back to Section Two