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

4th Jun 2021, 4:21 PM
Diana Miranda
Diana Miranda - avatar
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] """
4th Jun 2021, 6:20 PM
visph
visph - avatar
+ 3
This may work for you : a,b,c = [int(i) for i in input().split(' ')] print(a,b,c)
4th Jun 2021, 4:25 PM
Ervis Meta
Ervis Meta - avatar
+ 1
Thanks! It help me a lot
4th Jun 2021, 10:20 PM
Diana Miranda
Diana Miranda - avatar