How can we take a list or array as input in one line only instead of multiple lines?
Taking Python Input
Hey @rishitagoel13, for this you can simply use the following line of code :
a = [int(i) for i in input().split()]
This will input a list of numbers in the variable a.
I hope this clears your doubt ! 
Happy coding !
Thank you so much Aayush!
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.