Question: This is meant to be done using if, for or while statements. I keep getting an error with my output. The error is that the

 This is meant to be done using if, for or whileThis is meant to be done using if, for or while statements. I keep getting an error with my output. The error is that the n the user types in does not print with the other values for n. I used a while statement. The spacing of my output is also not 100% like the specified output.

Write a program called'column. py'that asks the user to enter a number, n, where -6nc2 Starting from n, the program will print out every 7th number in the range n to n+41 Output will take the following form [d] d [d] d [d] d d] d [d] d [d] d That is, numbers are printed using a field width of 2 and are right-justified. ('d]' represents an optional digit.) Sample I/o Enter a number -5 2 16 23 30

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!