Example take an unknown number of inputs in Python
Simple example code takes unknown numbers of inputs and stores them into a list object.
inputs =  while True: inp = input() if inp == "": break inputs.append(inp) print(inputs)
This is how to read an unknown number of integer inputs from user:
inputs =  while True: inp = input() if inp == "": break inputs.append(int(inp)) print(inputs)
[1, 2, 3]
Do comment if you have any doubts or suggestions on this Python input topic.
Note: IDE: PyCharm 2021.3 (Community Edition)
All Python Examples are in Python 3, so Maybe its different from python 2 or upgraded versions.
Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology & like learning technical.