0
Put 3 values in a line with input and for python
I have this code N= int(input ()) Valor= [float(input ()) for_in range(N)] But I want to the code make this 3 enter and change this number for anyone 12 45 87 6 56 87 23 76 67
3 Answers
+ 1
valor = [int(v) for _ in range(int(input())) for v in input().split()]
print(valor)
"""
for given input:
3
12 45 87
6 56 87
23 76 67
output:
[12, 45, 87, 6, 56, 87, 23, 76, 67]
"""
+ 3
This may work for you :
a,b,c = [int(i) for i in input().split(' ')]
print(a,b,c)
+ 1
Thanks! It help me a lot