user
You need to complete the following task:

Modify the following code to print the second highest value in the list.

list1 = [18, 23, 9, 55, 2]
print(max(list1))

Answer:
assistant
list1 = [18, 23, 9, 55, 2]
list1.remove(max(list1))
print(max(list1))