I am working with for loops in python3. My school pass in a number N.
I am working with for loops in python3. My school pass in a number N. They want me to output the times table for that number from 1 to 12.
So, if we pass in 6, you should output 6, 12, 18, 24 … 66, 72. Here is my code that I have.
num = 1
while num <= 12:
print(num)
num = num + 1
It passes through 1-12 but it tells me that it expects a negative 1-12. If I change my num variable to a negative number it tells me to expect and positive 1-12.
This class is killing me!!!!
Please help