How to take input from user without asking the size of list

I need to know how can I take input till the user is providing space separated values and I’ll to the storing in list.

hey @AnkitaKrishnan ,
Just ask user to input a string of numbers seperated by spaces, as many numbers user wants.
After storing that string , just split it .
You will get all your numbers in form of a list.

I hope this helps.