If I understand your question correctly, you want to your list using successive inputs.  Here is something that may be what you are looking for:
ans = None
values = []
while ans != '':
    ans = input('enter value: ')
    if ans.isdigit():
        and = int(ans)
    if ans.strip() == '':
        break
    values.append(and)
print('\n'.join(str(x) for x in values)
This will take inputs until the input is blank, converting any input that is a number to an int since input return values are always strings
Alternatively you can directly get a list of space separated numbers. This approach will fail if a non-digit value is entered:
print('enter space-separated numbers')
values = [int(val) for val in input().split()]