Write code that prompts the user to keep entering integers until the user types 'n.' Store each of these integers in a single list containing all of the user's input.
a) Python code
b) JavaScript code
c) HTML code
d) C++ code