Skip to Main Content
Math Adventures with Python
book

Math Adventures with Python

by Peter Farrell
January 2019
Intermediate to advanced content levelIntermediate to advanced
304 pages
7h 4m
English
No Starch Press
Content preview from Math Adventures with Python

3GUESSING AND CHECKING WITH CONDITIONALS

“Put your dough into the oven when it is hot: After making sure that it is in fact dough.” —Idries Shah, Learning How to Learn

image

In almost every program you write for this book, you’re going to instruct the computer to make a decision. You can do this using an important programming tool called conditionals. In programming we can use conditional statements

like “If this variable is more than 100, do this; otherwise, do that” to check whether certain conditions are met and then determine what to do based on the result. In fact, this is a very powerful method that we apply to big problems, and it’s even at the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Statistics and Calculus with Python Workshop

The Statistics and Calculus with Python Workshop

Peter Farrell, Alvaro Fuentes, Ajinkya Sudhir Kolhe, Quan Nguyen, Alexander Joseph Sarver, Marios Tsatsos, Amit Chaurasia, Rohan Chikorde, Sanjin Dedic, Tim Hoolihan, Ravi Ranjan Prasad Karn, Alberto Manzini
Math for Deep Learning

Math for Deep Learning

Ronald T. Kneusel

Publisher Resources

ISBN: 9781492071228