"""
Demonstrates deleting elements from lists.
"""

#A list named numbers containing the values 8, 5, 7, 3 and 1
numbers = [8, 10, 5, 7, 3, 1, 10]

#Deletes the third element from the numbers list
del numbers[2]

#Prints the numbers list
print(numbers)

#Deletes the third element from the numbers list again
del numbers[2]

#Prints the numbers list
print(numbers)

#********************************#
print()

"""
#Deletes the value 10 from the numbers list using the remove function
numbers.remove(10)

#Prints the numbers list
print(numbers)
"""

"""
Demonstrates deleting elements from lists.
"""

#A list named numbers containing the values 8, 5, 7, 3 and 1
numbers = [8, 10, 5, 7, 3, 1, 10]

#Deletes the third element from the numbers list
del numbers[2]

#Prints the numbers list
print(numbers)

#Deletes the third element from the numbers list again
del numbers[2]

#Prints the numbers list
print(numbers)

#********************************#
print()

"""
#Deletes the value 10 from the numbers list using the remove function
numbers.remove(10)

#Prints the numbers list
print(numbers)
"""

Demonstrates deleting elements from lists. #A list named numbers containing the values 8, 5, 7, 3 and 1 #Deletes the third element from the numbers list #Prints the numbers list #Deletes the third element from the numbers list again #Prints the numbers list #********************************# #Deletes the value 10 from the numbers list using the remove function numbers.remove(10)  #Prints the numbers list print(numbers)