Loading topic
print() to show values, and know what a statement is. No other Python knowledge is needed.2 min readprint(). It also assumes you know that name = value binds a name to an object. Here you learn which names Python accepts and which names other programmers can read easily.2 min readprint(), and know what a statement is. It builds on the idea that an assignment binds a name to an object.2 min readprint(). It explains how to tell whether two names refer to the same object, and why changing an object sometimes affects more than one name.2 min readprint(). It also assumes you know that a name refers to an object, as covered earlier in the tutorial. Here you will learn how the two main number types behave, so you can pick the right one and recognize their common failures.3 min readprint(), and know the difference between an int and a float. It covers the arithmetic operators, how Python decides which one runs first, and the mistakes that most often trip people up.2 min readprint(), and know the difference between int and float. It explains why float arithmetic gives surprising results and which tools to use instead.2 min readprint(), and tell int from float. It covers converting between numeric types, the different ways to drop a fractional part, and bool as a number.2 min readprint(), and know that a name is bound to an object. A string literal is text written directly in your source code. Python turns it into a str object.2 min readprint(), and know that a string is a sequence of characters. It covers how to pick out single characters (indexing) and pieces of a string (slicing), and the errors that come up most often.2 min read+ joins strings, and that slicing returns part of a string. It explains what it means that a str cannot change, and how to work with that.2 min readtext.upper().2 min readprint(), and use strings, numbers, and the arithmetic operators from earlier chapters. It covers how to build readable output with f-strings and format specifiers.2 min readprint(), and read a basic try/except block. It also assumes you know that str, int, and float are distinct types.2 min readprint(), and index and slice strings. It covers the difference between str and bytes, and how to convert between them explicitly.2 min read