Create a Python program that prints the numbers from 1 to 10. The program will ask the user if they would like to print the numbers in ascending or descending order.
If printing the numbers in ascending (1 to 10) order, you must use a while loop in the printing of the numbers.
If printing the numbers in descending (10 to 1) order, you must use a for loop (with the range function) in the printing of the numbers.
When finished, submit your Python source code (the .py file) below.
Notes:
- Your program must include comments describing the important parts.
- The program's UI/UX should be clean and intuitive.
- There should be no "magic numbers" in your program.
- Use constants where applicable.
- Only use code that has been discussed in this class (e.g., no functions, etc.).
- Your program must use a loop(s) to solve the problem.
Description:
Create a Python program that prints the numbers from 1 to 10. The program will ask the user if they would like to print the numbers in ascending or descending order. If printing the numbers in ascending (1 to 10) order, you must use a while loop in the printing of the numbers. If printing the numbers in descending (10 to 1) order, you must use a for loop (with the range function) in the printing of the numbers.
When finished, submit your Python source code (the .py file) below.
Notes:
- Your program must include comments describing the important parts.
- The program's UI/UX should be clean and intuitive.
- There should be no "magic numbers" in your program. Use constants where applicable.
- Only use code that has been discussed in this class (e.g., no functions, etc.).
- Your program must use a loop(s) to solve the problem.