python check if int is between two values

if 10000 <= number <= 30000:
    pass

Here is what the above code is Doing:
1. It's checking if the number is between 10,000 and 30,000.
2. If it is, it does nothing.
3. If it isn't, it skips the rest of the code and goes on to the next line.

This is called an if statement.

The general form of an if statement is:

if condition:
do something

The condition is a Boolean expression that can be either True or False.

If the condition is True, then the code under the if statement is executed.

If the condition is False, then the code under the if statement is skipped.

Let's look at another example.

This time, we'll write a program that prints out "Hello, world!" if the user enters the number 1, and prints out "Goodbye, world!" if the user enters the number 2.

Here's the code:

number = int(input("Enter a number: "))

if number == 1:
print("Hello, world!")
elif number == 2:
print("Goodbye, world!")

The code above is doing the following:
1. It's asking the user to enter a number.
2. It's checking if the number is 1.
3. If it is, it prints out "Hello, world!".
4. If it isn't, it checks if the number is 2.
5. If it is, it prints out "Goodbye, world!".
6. If it isn't, it does nothing.

This is called an if-elif statement.

The general form of an if-elif statement is:

if condition1:
do something
elif condition2:
do something
elif condition3:
do something
...

The conditions are Boolean expressions that can be either True or False.

If condition1 is True, then the code under the if statement is executed.

If condition1 is False and condition2 is True, then the code under the elif statement is executed.

If condition1 and condition2 are both False and condition3 is True, then the code under the elif statement is executed.

...

If all the conditions are False, then the code under the if statement is skipped.

Let's look at one more example.

This time, we'll write a program that prints out "Hello, world!" if the user enters the number 1, prints out "Goodbye, world!" if the user enters the number 2, and prints out "I don't know what you mean!" if the user enters anything else.

Here's the code:

number = int(input("Enter a number: "))

if number == 1:
print("Hello, world!")
elif number == 2:
print("Goodbye, world!")
else:
print("I don't know what you mean!")

The code above is doing the following:
1. It's asking the user to enter a number.
2. It's checking if the number is 1.
3. If it is, it prints out "Hello, world!".
4. If it isn't, it checks if the number is 2.
5. If it is, it prints out "Goodbye, world!".
6. If it isn't, it prints out "I don't know what you mean!".

This is called an if-elif-else statement.

The general form of an if-elif-else statement is:

if condition1:
do something
elif condition2:
do something
elif condition3:
do something
...
else:
do something

The conditions are Boolean expressions that can be either True or False.

If condition1 is True, then the code under the if statement is executed.

If condition1 is False and condition2 is True, then the code under the elif statement is executed.

If condition1 and condition2 are both False and condition3 is True, then the code under the elif statement is executed.

...

If all the conditions are False, then the code under the else statement is executed.

Task

You are given a variable, . Your task is to print:

- ONE, if num is equal to .
- TWO, if num is equal to .
- THREE, if num is equal to .
- FOUR, if num is equal to .
- FIVE, if num is equal to .
- SIX, if num is equal to .
-