Day 84 #90DaysOfDevops

Odunayo IdowuOdunayo Idowu
1 min read

for today, i learnt how to use python sets.

sets are used to store multiple items in a single variable. sets are written with curly bracket. newset = {“white”, “black”, “purple”}. note that set items can be of any data type - string, int and boolean.

sets can be accessed through a loop using a *for* loop. items can also be added to sets and also removed.

cheers to many more days.

0
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.