I'm trying to do basic arithmetic with different numeric types. The input is one floating number (4.2), two integers (3)(2), one string('Hello'). How can I read the input from the user in one the same line? Each numeric type is separated by a space only, with no commas. I've managed to make it work by defining the inputs separately on one line per input.
` a = float (input())
b = int (input())
c = int (input())
d = str (input())
print (round (a * b,2),end=d*c) `
The actual result works fine if the input is provided in different lines but I would like to get all the input in one line. Thank you.