List Functions
Programming Progress Log » Devlog
friends = ["manni", "zac", "lizzi",]
friends.insert(1, "Kelly") friends.remove("lizzi") print(friends.index("manni")) print(friends) friends2 = friends.copy() print(friends2) lucky_numbers = [23, 45, 25] lucky_numbers.sort() print(lucky_numbers) 0 ['manni', 'Kelly', 'zac'] ['manni', 'Kelly', 'zac'] [23, 25, 45]
Programming Progress Log
More posts
- Python Classes/ObjectsOct 24, 2022
- While LoopsOct 24, 2022
- LoopsOct 16, 2022
- ListsOct 16, 2022
- Short Circuit PracticeOct 16, 2022
- Using VariablesOct 15, 2022
- Converting degrees to farenheitOct 15, 2022
- First CodeOct 15, 2022
Leave a comment
Log in with itch.io to leave a comment.