Back to Browse

Example using Python “if-else” block | An even/odd number detector

104 views
Jul 20, 2021
3:57

LINKS TO FULL CONTENT Full lesson: https://computersciencecamp.com/courses/python3/control-flow/conditional-execution-ii Full course: https://computersciencecamp.com/courses/python3 FULL LESSON DESCRIPTION In the previous lesson we’ve introduced three variations of the ‘if’ statement as a simple mechanism to control what code to execute based on conditions given as Boolean expressions. In this lesson, we’ll practice conditional execution with some interactive exercises. First, I’ll show you two examples for which you and I will be writing code together, and then I’ll propose a third problem that I’ll ask you to complete before I present my proposed solution. FULL LESSON CONTENT Part 1. Even/odd number detector Part 2. Sticks triangle problem Part 3. Conditional calculator

Download

0 formats

No download links available.

Example using Python “if-else” block | An even/odd number detector | NatokHD