O'Reilly logo

Python in 24 Hours, Sams Teach Yourself, Second Edition by Katie Cunningham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 3. Logic in Programming

What You’ll Learn in This Hour:

Image How to use if to run code if something is true

Image How to create blocks

Image How to use else to run code if something is not true

Image How to use elif to test more than one condition

Image How Python considers ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required