Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

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

 
"Looking for a Similar Assignment? Order now and Get 10% Discount! Use Code "Newclient"