Skip to the content.
Fundamentals .1 .2 .3 .4 .5 .6 .7 .8 .10

3.6 Mastering Conditionals - Hacks

Student led teaching on Conditionals. Learn how conditionals control the flow of a program by executing specific blocks of code under certain conditions.

CSP Big Ideas

Quiz

Homework Hack

Write a Python program that takes two numbers as input from the user. The program should:

  • Determine if the numbers are equal.
  • If the numbers are different, print which number is larger.

Answer:

See an example solution