# input two numbers in python in a single line

`inputs = []for i in range(3):  # loop 3 times	inputs.append(input())`

Here is what the above code is Doing:
1. It’s creating an empty list called inputs.
2. It’s looping 3 times.
3. Each time it loops, it’s asking the user for input.
4. It’s adding the input to the inputs list.

Now, let’s say the user enters the following:

1
2
3

The inputs list will now look like this:

inputs = [1, 2, 3]

You can now use the inputs list however you want. For example, you could use a for loop to print out each item in the list:

for item in inputs:
print(item)

This would print out:

1
2
3

You could also use the inputs list to do some calculations. For example, let’s say you want to find the average of the numbers in the list. You could do this:

total = 0
for item in inputs:
total = total + item

average = total / len(inputs)

print(“The average is”, average)

This would print out:

The average is 2.0

You can also use the inputs list to do other things. For example, you could use it to find the largest number in the list:

largest = inputs
for item in inputs:
if item > largest:
largest = item

print(“The largest number is”, largest)

This would print out:

The largest number is 3

You could also use the inputs list to do other things. For example, you could use it to find the smallest number in the list:

smallest = inputs
for item in inputs:
if item < smallest: smallest = item print("The smallest number is", smallest) This would print out: The smallest number is 1 You could also use the inputs list to do other things. For example, you could use it to find the sum of the numbers in the list: total = 0 for item in inputs: total = total + item print("The sum of the numbers is", total) This would print out: The sum of the numbers is 6 You could also use the inputs list to do other things. For example, you could use it to find the product of the numbers in the list: product = 1 for item in inputs: product = product * item print("The product of the numbers is", product) This would print out: The product of the numbers is 6