Python Fundamentals I: Python Variables, Data Types and Operators
Xavier Chee
0:00 / 0:00
Python Fundamentals I: Python Variables, Data Types and Operators
56 просмотров · 10 дн. назад
Xavier Chee
11 подписчиков
56 просмотров · 10 дн. назад
WHAT THIS COVERS
Learn how a variable works in Python. You will see what happens when a variable is given a new value. This video also covers the four basic data types, int, float, str and bool, and how to check which one you have with type(). You will also see how to convert between types with int(), float() and str().
Next, you will also learn the rules and convention Python has for naming variables
Finally, we will cover the arithmetic operators, including floor division (//), modulo (%) and powers (**). You will see why the plus sign adds numbers but joins strings, and refuses to mix the two. The video also covers the difference between = and ==, combining conditions with and, or and not, and the order Python applies operators in, using brackets to make your intention clear.
SECTIONS
0:00 What you will be able to do
0:24 Variables: a name that points to a value
1:21 The four data types: int, float, str, bool
3:01 Checking a value's type with type()
3:43 Converting between types, and why int() truncates
4:43 Naming variables: rules and convention
5:30 Expressions and the arithmetic operators
6:38 Why + adds numbers but joins strings
7:24 Comparison operators, and = versus ==
8:05 Combining conditions with and, or, not
8:44 Order of operations
9:23 Summary
THE COURSE
Learn Python programming on this platform:
https://mscphm.github.io/bridging-cou...
Next lesson - Python f-Strings and Error Handling
Link: • Python Fundamentals II: f-Strings and Erro...