190R6 Coding Structures (6R)

Variables, sequential and conditional code structures in programming

(Example video covering the concepts, providing an overview of programming)


 

ACTIVITIES

Variables

  1. What are the 4 common ways of writing variable names?
  2. Practise global & local variables (Py)
    1. see the top 2 examples
    2. run programs to see output
    3. in the top example
      1. change “Python is” to “This is a “+x+” variable”
      2. create new global variables y & z
        1. y = “This is a ” & z = ” variable”
        2. rewrite the expressions so there are only variables