Think Python: How to Think Like a Computer Scientist

(singke) #1

Chapter 5. Conditionals and Recursion


The main topic of this chapter is the if statement, which executes different code
depending on the state of the program. But first I want to introduce two new operators:
floor division and modulus.

Free download pdf