LESSON – Creative Writing with programming
- Using programming to create a quiz game
- undesrtand how to use a count variables (e.g. Score)
- embed a count variables in an IF statement
- customise and refine programs further with print functions
What do you think, what will be the output of the below codes, if the answer given to first one is “4” and the second one is “Milan”
Discuss your result with the person next to you.
Task 1 – Writing a simple quiz program
Write this simple quiz program in python and save it as a Simple Quiz
You can modify the questions and make it your own ones! and Run your program see if it going to work the way you want it.
Task 2 – Adding score to your quiz
At end of your code add this line
Once you have complete this task run your program and see if it is outputting anything different than earlier version.
Task 2 – Modify your program
Your program should calculate the score for all your questions
make sure you have add this line
to all your questions
if the score is more than 10 it should print: