Python Lists

Just wrapped up my Python Lists module on Kaggle! Here's what I have learnt: ✅ Store multiple items in one variable ✅ Access with index numbers (even from the end!) ✅ Slice, insert, update, remove… You name it ✅ Combine lists with extend() ✅ Use pop(), remove(), clear(),del —depending on your clean-up needs From checking if "Ferrari" is in my F1 list to replacing "McLaren" with "Alpine", I'm starting to feel like a data pit crew boss! Here’s a fun example: this_list = ["RedBull", "McLaren", "Mercedes"] print(this_list[1: ]) Output is ['McLaren', 'Mercedes'] Every line of code is a new gear—can’t wait to shift into the next one! Python #100DaysOfCode #Kaggle #LearningToCode #F1Data #CodeNewbie #ListsInPython

May 9, 2025 - 11:41
 0
Python Lists

Just wrapped up my Python Lists module on Kaggle! Here's what I have learnt:
✅ Store multiple items in one variable
✅ Access with index numbers (even from the end!)
✅ Slice, insert, update, remove… You name it
✅ Combine lists with extend()
✅ Use pop(), remove(), clear(),del —depending on your clean-up needs

From checking if "Ferrari" is in my F1 list to replacing "McLaren" with "Alpine", I'm starting to feel like a data pit crew boss!
Here’s a fun example:

this_list = ["RedBull", "McLaren", "Mercedes"]
print(this_list[1: ])

Output is ['McLaren', 'Mercedes']

Every line of code is a new gear—can’t wait to shift into the next one!

Python #100DaysOfCode #Kaggle #LearningToCode #F1Data #CodeNewbie #ListsInPython