News

Now you know the basics of how to use if statements in Python, but there are many more things you can do. For example, you can use different “operators” to create different test-statements.
loop Be sure to indent the statements to repeat in the loop Let's see examples. #1 print all even numbers from 1 to 20 number = 2 # initialize the number we want to print while number <= 20: print ...