# Variables Concept Video Activity

**URL:** <https://club.ministryoftesting.com/t/variables-concept-video-activity/33617>\
**Category:** Discussions\
**Tags:** python, python-for-testers-intro\
**Created:** [22 January 2020 02:15 UTC](https://club.ministryoftesting.com/t/variables-concept-video-activity/33617 "2020-01-22T02:15:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davewesterveld](https://sea2.discourse-cdn.com/flex020/user_avatar/club.ministryoftesting.com/davewesterveld/32/283_2.png) [@davewesterveld](https://club.ministryoftesting.com/u/davewesterveld)\
**Post date:** [22 January 2020 02:15 UTC](https://club.ministryoftesting.com/t/variables-concept-video-activity/33617/1 "2020-01-22T02:15:39Z")

</div>

**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:**

- [https://www.w3schools.com/python/python\_variables.asp](https://www.w3schools.com/python/python_variables.asp)
- [https://realpython.com/python-variables/](https://realpython.com/python-variables/)

A file showing a possible solution is available on github [here](https://github.com/djwester/pythonfortesters/blob/master/ConceptsPractice/Variables_solution.py)
