Day 83 #90DaysOfDevops

For today, i learnt lists and tuples. At first, they looked almost the same to me. Both could store several items, and both allowed me to access things using indexes like 0
, 1
, and 2
. But it didn’t take long before I started noticing their differences and understanding why both exist.
First up was lists. i learnt how to acess list, change list items, add to an existing list and also remove list items, loop lists, sort lists using all sort of methods such as append(). , clear(). etc.
Tuples are used to store multiple items in a single variable. i learnt how to access tuples, update, unpack, loop and also join tuples using methods such as count(). index().
these are what i learnt today, interesting stuff tbf.
Cheers to many more days.
Subscribe to my newsletter
Read articles from Odunayo Idowu directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Odunayo Idowu
Odunayo Idowu
Aspiring Devops engineer eager to make an impact.