"""
For the exercise, look up the methods and functions that are available for use
with Python lists.
https://note.nkmk.me/en/python-list-clear-pop-remove-del/
https://note.nkmk.me/en/python-list-append-extend-insert/
"""


x = [1, 2, 3]
y = [8, 9, 10]

# For the following, DO NOT USE AN ASSIGNMENT (=).

# Change x so that it is [1, 2, 3, 4]
# YOUR CODE HERE
x.append(4)
print(x)

# Using y, change x so that it is [1, 2, 3, 4, 8, 9, 10]
# YOUR CODE HERE
x.extend(y)
print(x)

# Change x so that it is [1, 2, 3, 4, 9, 10]
# YOUR CODE HERE
x.remove(8)
print(x)

# Change x so that it is [1, 2, 3, 4, 9, 99, 10]
# YOUR CODE HERE
x.insert(-1, 99)
print(x)

# Print the length of list x
# YOUR CODE HERE
print(len(x))

# Print all the values in x multiplied by 1000
# YOUR CODE HERE
x = [num * 1000 for num in x]
print(x)


"""
Answers
[1, 2, 3, 4]
[1, 2, 3, 4, 8, 9, 10]
[1, 2, 3, 4, 9, 10]
[1, 2, 3, 4, 9, 99, 10]
7
[1000, 2000, 3000, 4000, 9000, 99000, 10000]
"""