Write a program that prompts the user to input three numbers. The program should then output the numbers in non-descending order

Assistance needed.

what language are you using

def main():
for i in range(3)
number = eval(input('Enter a number?'))
pirnt(number)

To write a program that prompts the user to input three numbers and outputs them in non-descending order, you can follow these steps:

1. Start by declaring three variables to store the user's input. Let's call them `num1`, `num2`, and `num3`.

2. Use `input()` function to prompt the user to enter the first number, and assign the input to `num1`. Repeat this process for the other two numbers.

3. Use conditional statements (such as `if`, `elif`, and `else`) to compare the values of the three numbers and sort them in non-descending order.

4. Print the sorted numbers in non-descending order.

Here's the Python code that implements the above steps:

```python
# Step 1: Declare three variables
num1 = int(input("Enter the first number: "))
num2 = int(input("Enter the second number: "))
num3 = int(input("Enter the third number: "))

# Step 3: Sort the numbers in non-descending order
if num1 <= num2 and num1 <= num3:
if num2 <= num3:
sorted_nums = [num1, num2, num3]
else:
sorted_nums = [num1, num3, num2]
elif num2 <= num1 and num2 <= num3:
if num1 <= num3:
sorted_nums = [num2, num1, num3]
else:
sorted_nums = [num2, num3, num1]
else:
if num1 <= num2:
sorted_nums = [num3, num1, num2]
else:
sorted_nums = [num3, num2, num1]

# Step 4: Print the sorted numbers
print("Numbers in non-descending order:", sorted_nums)
```

When you run this program, it will prompt the user to enter three numbers. After the input is provided, it will sort the numbers in non-descending order and print them out.