"""demo delete by index"""

items = [2.2, 'pam', 4, 5, 3, 'allen', 'jack', 4, 5, .98, 'tim', 'patric', 'kim']
print(items)
print()

value = items.pop()
print(value)
print(items)
print()


items = [2.2, 'pam', 4, 5, 3, 'allen', 'jack', 4, 5, .98, 'tim', 'patric', 'kim']
print(items)
print()

value = items.pop(-4)
print(value)
print(items)
print()