Exercise 1.8. (Python Variables and Data Types)

the_basics_lesson_8_exercise.pdf | |
File Size: | 258 kb |
File Type: |
1. Ensure you have viewed the video (associated with this exercise) at this link >>
2. Fill in the blank for the following description of a program variable:
Program variables are reserved ___________ locations used to store data
Program variables are reserved ___________ locations used to store data
3. In your own words describe what is meant by a variable identifier and a variable value..
4. Program variables have data types such as: Integer; Float and String. After the execution of the following snippet of code what are the data type of the three variables var_one, var_two and var_three?
5. Run the code snippet below to assist you with the answer to the question above (i.e. Step 4). Note type(var_one) 'reports' the type of the variable in its brackets.
6. The Data type of a variable defines the way in which the variable can be processed. With this in mind what will happen when the following snippet of code is executed.
7. Enter and run the code shown above to check your answer to the question in Step 6.
8. Enter and run the code shown below did it work in the way you expected?
END Next Exercise >>