Lesson Overview

In this lesson, you will learn the use of conditional statements within Python. The most commonly used conditional statement is the if else statement.

Activities for Practice

  • Write a program that checks if a number provided by the user is positive, negative, or zero.
  • Write a program that asks the user for their age and fitness level (beginner, intermediate, advanced). Use nested if statements to recommend a class based on the following criteria:
    • Age < 18: "Youth Class"
    • Age >= 18 and Fitness Level Beginner: "Beginner Class"
    • Age >= 18 and Fitness Level Intermediate: "Intermediate Class"
    • Age >= 18 and Fitness Level Advanced: "Advanced Class"
  • Write a program that asks the user for their exam score and prints the corresponding grade based on predefined ranges.
  • Write a program that asks the user for their exam score and prints the corresponding grade based on predefined ranges.

Contact us at codewithoutwords@gmail.com if you have any issues or need any guidance.

Lesson Transcript

Welcome to the first lesson in our Python programming course. In this lesson, we will cover the basics of Python, including how to write your first program, understand Python syntax, and perform basic operations...