I just wanted to know if there is any efficient way to take multiple inputs from a user and store it in a list in Python.
Based on my research so far I understand that we can make use of split method to do this however, from what I understand that, if I take this approach and if I have to get 10 value from a user I'll have to define 10 variables and it seems a little tedious to me.
I tried taking multiple inputs and defining it in a list using the following code : x = list(input('Enter 10 numbers ')) print(x)
however, this will treat numbers as strings and if I try to use int() function it gives me the following error : invalid literal for int() with base 10
Hence, any suggestions or an efficient approach will be really helpful.