The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
Learn programming fundamentals with variables, conditions and loops
1. Variables
Add a variable
called “number”
Exercise:
Say a random number
1
2. Conditions
Exercise:
– What does
this code do?
– What are the
errors in the
code?
– If you have
any questions
then ask the
demonstrators 2
3. Conditions
Exercise:
– What does
this code do?
– What are the
errors in the
code?
– What if
“number” is
equal to 5?
3
4. More motion action
• Exercise
– Make the sprite go to x=0, y=0
• Exercise
– Make the sprite move 100 steps and turn 90 degrees
• Exercise
– Make the sprite go in a square pattern
• Exercise
– Make the sprite move when you hit a key
4
5. Iteration
• Repeat statements
• Exercise:
Guess what this
code does
• Test your guess
5
6. Loop exercises
• Exercise: Draw this (10 diamonds)
• Exercise: Try to write your programs with as few statements as
possible
6
7. More repeating exercises
• Exercise: Draw this in any colour
• Exercise: Change the colour of each square
• Exercise: Draw a triangle, a pentagon a hexagon
and a circle.
7