nums = []
num = 0
valid_list = []
while num != '':
num = input('Enter numbers :')
nums.append(num)
nums2 = [(nums[i]) for i in range(0,len(nums))]
for i in range(len(nums2)):
if int(nums2[i]) < 101 and int(nums2[i]) > 0:
valid_list.append(nums2[i])
print(valid_list)
Sorry dont really know how to ask question corectly, but i hope those who get my idea will help, Thanks. So i am tryed to make program wich fills list with integers entered by user, than chech if they fit 1-101 and if they fit put those number in valid_list, The problem is while num != '': (BTW inters must be entered one by one, and it must stop when return is hited)