study-python-fastapi/main.py
2024-12-01 10:54:32 +00:00

18 lines
270 B
Python

a = [1, 2, 3, 4, 5]
b = ["appl", "bann", "cherr"]
a.append(6)
b.append("tomatto")
print(a, b)
a.insert(3, 7.4)
b.insert(3, "bottle")
print(a, b)
a.remove(7.4)
b.remove("bottle")
print(a, b)
last_elem_1 = a.pop()
last_elem_2 = b.pop()
print(last_elem_1, last_elem_2)