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:
- Create a variable that contains the string βHelloβ
- Create a variable that contains the integer 250
- Create a variable that contains the expression 2+2
- 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