In this video, we go back to basics.
To ensure a firm foundation for the rest of your coding career, familiarizing yourself with the fundamental terminology of Python.
Brief overview:
Variables must start with letters, not numbers.
5 = ‘hello’ (does not work)
green = ‘hello’ (will work)
Anything with ‘quotes’ or “double quotes” is called a string data type.
Integers are whole numbers like:
4
5
6
Any number with a decimal point is referred to as a floating number.
Give variables relevant, and intuitive, names. Vague names like ‘x’ or ‘y’ are likely to make it more confusing for you when reading back through your code, or if you pass on your code to anyone else.
If you use a variable, name it something relevant.
my_favorite_colors = [‘gold’,’cyna’,’peach’]