Variables Concept Video Activity

Time: 10-15 minutes

Purpose: Give you practice with using variables in python.

Introduction: Try to work out the following tasks in python and run them to make sure they do what you expect.

Tasks:

  1. Create a variable that contains the string β€œHello”
  2. Create a variable that contains the integer 250
  3. Create a variable that contains the expression 2+2
  4. Create a variable that contains the float 1.5 and one that contains the float 2.5. Create a third variable that contains the addition of both variables

Further learning resources:

A file showing a possible solution is available on github here