Loading topic
int, float, str, bool, list and dict. You should also be comfortable with simple variable assignment such as x = 5.2 min readint, float and bool types and simple assignment. It covers the arithmetic operators and the type of value each one returns. The next chapters cover division and floating-point precision in detail.2 min readint and float, and simple assignment. You can run the examples in a script or the REPL.2 min readint, float, and bool types, and have used == and arithmetic operators. By the end you will know why some float comparisons fail and how to compare floats safely.2 min readint and float, and the single comparison operators <, <=, >, >=, == and !=.2 min readif statements work. It covers how Python turns any value into True or False.2 min read0, 0.0, and None count as false.2 min readint, float, str, bool, list and dict, and how truthiness works (empty and zero values are false, most other values are true).2 min readstr, list, tuple, dict, set), how to run a script or the REPL, and how == and is differ. It covers the in and not in operators.2 min readstr, list and tuple, and how to run code in a script or the REPL. Sequences are ordered collections. Python reuses familiar operators on them, and the meaning changes with the type.2 min readint, float, str, list, dict) and how to bind a name with x = 5. Here we look at what assignment does, how augmented assignment such as += differs from x = x + 1, and where this t2 min readif and while statements, how to build list comprehensions, and how ordinary assignment with = works.2 min readint type, how to write binary literals such as 0b0101, and how print shows values. Bitwise operators work on the binary digits of integers, one position at a time.2 min read__init__ and methods, and that you know how +, ==, and isinstance behave on built-in types.2 min read