Question

Write the PYTHON code that displays the following numbers: The program should have a header that...

Write the PYTHON code that displays the following numbers:

  • The program should have a header that displays "Number   Doubled Tripled" above the start of the numbers.
  • If putting all numbers on the same line, then they will need to be separated so you can see he individual number.(https://www.programiz.com/python-programming/methods/built-in/print)
  • The program should display Every whole number from 1 through 35.
  • The program should display that number doubled.
  • The program should also display that number tripled.
  • Make a working version of this program in Python
0 0
Add a comment Improve this question Transcribed image text
Answer #1
print("Number   Doubled Tripled")
i = 1
while i <= 35:
    print("  {:2d}\t\t{:2d}\t\t{:2d}".format(i, 2*i,3*i))
    i += 1

Add a comment
Know the answer?
Add Answer to:
Write the PYTHON code that displays the following numbers: The program should have a header that...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT