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 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
Get step-by-step solutions from verified subject matter experts
