Question: using two while loops Task Standard input consists of a sequence ten non-negative digits, one per line. Write a Python script named reverse-ten-digits.py. which outputs
Task Standard input consists of a sequence ten non-negative digits, one per line. Write a Python script named reverse-ten-digits.py. which outputs those same ten digits, but in reverse order. Example standard input Example standard outnut Tip You cannot produce the first line of the output until you have read the last line of the input (because the last line of the input is the first line of the output). Therefore, you will need two loops, one to read the input, and one to write the output. Also, you will have to store the digits somewhere
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
