Start with:
numbers = [10, 5, 7, 2, 1]
Then achieve the following:
Original list content: [10, 5, 7, 2, 1]
Previous list content: [111, 5, 7, 2, 1]
Previous list content: [111, 1, 7, 2, 1]
List length: 5
Start with:
numbers = [10, 5, 7, 2, 1]
Then achieve the following:
Original list content: [10, 5, 7, 2, 1]
List's length: 5
New list's length: 4
, New list content: [10, 7, 2, 1]
Achieve the following
Start with:
numbers = [111, 7, 2, 1]
Then achieve the following:
4
[111, 7, 2, 1]
5
[111, 7, 2, 1, 4]
6
[222, 111, 7, 2, 1, 4] (USE INSERT with tuple using first number as index and
second number as value)
Start with an empty list:
my_list = []
Use a for loop