See the comments for explanations of what each line does.
Code
integers = [] # Create an empty list to store the values
user_input = int(input()) # Get the first input
while user_input > 0: # Loop as specified
integers.append(user_input) # Add the value to the list
user_input = int(input()) # Get another input
print(integers) # Print the full list