+ 1
Input with 80 numbers???
How can make an input that I can receive 80 numbers from it???
1 Answer
0
You can directly ask for eighty inputs, using a for loop, like this:
for input_num in range(80):
int(input())
With this, you can also append it to a list:
num_list = []
for input_num in range(80):
num_list.append(int(input())
An easier way to do this, though the user can input any amount of numbers is:
input_list = input.split()
num_list = []
for num in input_list:
num_list.append(int(num))