Problem 1:

Multiplication Drill
Computers can perform calculations extremely quickly and accurately, but it's often handy to calculate with the computers we carry around inside our heads.

Write a program to drill you in multiplication tables. Your program should read a single line of input containing an integer, and print out the multiples of that number up to 12 times that number.

Here is an example interactive session between your program and a user:
Enter a number: 3

3 x 1 = 3
3 x 2 = 6
3 x 3 = 9
3 x 4 = 12
3 x 5 = 15
3 x 6 = 18
3 x 7 = 21
3 x 8 = 24
3 x 9 = 27
3 x 10 = 30
3 x 11 = 33
3 x 12 = 36

Problem 2:
Pyramids

You have always wanted to visit the Pyramids of Giza but unfortunately you've got too much homework to do!

To try and help with your travel withdrawals, you decide to write a program to generate pyramids for you. ASCII art pyramids are the next best thing, right?

Write a Python program to read in the width of the pyramid. Your program should then print out a pyramid using asterisks. For example:

Enter width: 2
*
* *

Problem 3:

Simon Says

Simon Says is a children’s game in which a leader gives instructions in the form of "Simon says put your hands in the air" and the players have to do what they say. However, if the leader gives an instruction without starting with 'Simon says' the players do nothing.

Write a program that plays this game. It should read in lines of input until a blank line is entered. If the line starts with Simon says it should print out the rest of the line. Lines that do not start with Simon says should be ignored.

Here is an example interaction between your program and the user:

Enter: jump
Enter: Simon says shout loudly
shout loudly
Enter: Simon would like you to eat a frog
Enter: Simon says clap your hands
clap your hands
Enter:

*I've already tried to answer Problem 2 but it doesn't form anything like a pyramid. ): The rest, I have no idea. HELP PLEASE!

Problem 1: Multiplication Drill

To solve this problem, you can write a Python program that takes a single input number and prints out the multiples of that number up to 12 times that number.

Here's how you can do it:

```python
# Read the input number
number = int(input("Enter a number: "))

# Iterate from 1 to 12 and print the multiples
for i in range(1, 13):
result = number * i
print(f"{number} x {i} = {result}")
```

In this program, we first read the input number using the `input` function and convert it to an integer using `int()`. Then, we use a `for` loop to iterate from 1 to 12. Inside the loop, we calculate the result of the multiplication and print it out using f-string formatting.

When you run this program and enter a number, it will generate the multiplication table for that number up to 12 times.

Problem 2: Pyramids

To solve this problem, you can write a Python program that reads in the width of the pyramid and prints out a pyramid using asterisks.

Here's how you can do it:

```python
# Read the input width
width = int(input("Enter width: "))

# Iterate over the number of rows
for i in range(width):
# Print spaces for each row to create the pyramid shape
print(" " * (width - i - 1), end="")

# Print asterisks for each row to create the pyramid shape
print("* " * (i + 1))
```

In this program, we first read the input width using the `input` function and convert it to an integer using `int()`. Then, we use a `for` loop to iterate over the number of rows, which is determined by the width.

Inside the loop, we first print the required number of spaces using string multiplication to create the pyramid shape. Then, we print the required number of asterisks using string multiplication. By adding a space after each asterisk, we create the pyramid effect.

When you run this program and enter a width, it will generate the pyramid using asterisks.

Problem 3: Simon Says

To solve this problem, you can write a Python program that reads lines of input until a blank line is entered. If the line starts with "Simon says", it should print out the rest of the line. Lines that do not start with "Simon says" should be ignored.

Here's how you can do it:

```python
# Read lines of input until a blank line is entered
while True:
command = input("Enter: ")

# Check if the line starts with "Simon says"
if command.startswith("Simon says"):
# Print the rest of the line
print(command[len("Simon says"):])

# Break the loop if a blank line is entered
if command == "":
break
```

In this program, we use a `while` loop that runs indefinitely. Inside the loop, we read each line of input using the `input` function.

We then check if the line starts with "Simon says" using the `startswith` method. If it does, we print the rest of the line by slicing the string from the length of "Simon says" to the end. If the line is blank, we break the loop using the `break` statement.

When you run this program, you can enter different lines of input. Lines that start with "Simon says" will have their rest of the line printed, and other lines will be ignored.