How to Use Python Variables | Python Tutorial Ep6

3 years ago
18

In this video, we learn how to use variables in Python. In the past couple episodes, we have been using single letter variable names. This video expands upon that topic and shows different ways of assigning variables, including simple, chained, and unpacking. We also go over good style and PEP8.

Feel free to read through these resources:

Python reserved keywords: https://realpython.com/lessons/reserved-keywords/
PEP8: https://www.python.org/dev/peps/pep-0008/

0:00 - What is a variable?
0:29 - Reserved keywords
0:39 - Simple assignment (including reassignment)
1:16 - Chained assignment
2:11 - Variable unpacking assignment
3:17 - Assigning a variable to another variable
3:32 - Variable and function naming conventions from PEP8
4:03 - Keeping code clean in variable assignments

Loading comments...