View the step-by-step solution to:

Question

I am so confused. if anyone can offer help, I would appreciate it.


This is what i am given to

do:

We will provide you with a number N. 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


This is my code:

# Get N from the command line

import sys

N = int(sys.argv[1])


# Your code goes here


N=6

for i in range(1,13):

 Num = N * i

 print(str(Num))


this is what I get:

Top Answer

The code needs to print space after every number. Here print()... View the full answer

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question