Both of these list declarations are valid. It’s not mandatory to have all elements on the same line. As long as there is an opening and closing brackets [], everything in between separated by commas is considered part of the list. The declaration can even have some blank lines or comments in between which will be ignored.
Once again, each list element can be treated as an ordinary variable like presented on the right. This creates a list with 2 elements which are read from the input.
l = [
int(input()),
int(input()),
]
Challenge
Create a list of 8 integers that are read from the user input. Multiply those values by 2 and print the list in the output.