If all were of the same value just use the function map that would convert to the chosen type, but as the types and different I believe that the only way would be to take them in string and convert later.
Here’s a way to do it using the split:
a,w,e = input().split(" ") # pega 3 valores na mesma linha e atribui a variáveis
# Converte o valor para os tipos necessários
a = int(a)
w = int(w)
e = float(e)
In your case you need 2 lines just do the same procedure again.
another way and using a list to store all values:
lista = []
lista = input().split(" ")
So all the values are in the same "variable", the procedure of converting the values will also be necessary, but in this case I recommend that you only do it at the time of use.
Describe the problem better
– nelson450
You are a beginner?
– nelson450
Yes @nelson450, I’m a beginner. I switched to improve understanding.
– RNG nick's
Please give examples of what this entry will look like and why you need to store it in just one variable.
– Woss
Take a look at this link.
– Solkarped