Python - Variables and Data types
Set your Learning Objectives to red.
Open your PowerPoint from last lesson.
Todays we will create a simple quiz with between 4 and 12 questions.
The code below is an example of set of how you might start your quiz
Remember when we compare if things are equal in python we use == not a single =.
We looked last week how Edublocks can help us with our python syntax
So lets make the same question as we just did in task 2 using Edublocks
Click on the link above to open up edublocks
See if you can make the code using the blocks below
Now look at the code by clicking on the Blocks button in the top right hand corner of the page.
The code should look like this:
If we want to keep track of how many questions the user has got right, then we need to introduce a variable to keep track of the users score. We will then assign a starting value to our variable which will be 0 as the users score will always start at 0.
Add a screenshot of your quiz code to your Powerpoint.
Lets look at the learning outcomes and decide which one best describes our current level of understanding :
Tick the one you feel is closest to your level