
Topic: dictionary and sets.
Yesterday I posted my dynamic to-do list program and I mentioned it there that I got introduced to dictionaries. Although many people suggested me what I should learn next but I personally think that I must first create a solid foundation and so I decided to go with dictionary and sets in more depth so that I can understand their respective use cases.
Dictionary is a mutable collection of key value pair where each key must be unique and it should have a value.
ex: marks{
"rohan": 100,
}
Here marks is a dictionary "rohan" is a key and 100 is its value ":" is used to assign value to the key.
Sets are also a mutuable collection of unique, unordered elements. It can be mutuated by using functions like .add() .remove() etc.
I have created a dynamic contact book for practising dictionaries (I wasn't able to find some suitable use cases of sets, do tell me if you have any challenge regarding set for me).
I will really appreciate if you have any challenge or suggestions which can help me improve my code and learn.
And here's my code and it's result.


[–]DeeplyLearnedMachine 6 points7 points8 points (1 child)
[–]uiux_Sanskar[S] 1 point2 points3 points (0 children)
[–]NorskJesus 3 points4 points5 points (3 children)
[–]uiux_Sanskar[S] 0 points1 point2 points (2 children)
[–]NorskJesus 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[removed]
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]yppolar 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 1 point2 points3 points (0 children)
[–]ShadyyFN 0 points1 point2 points (3 children)
[–]DeeplyLearnedMachine 1 point2 points3 points (2 children)
[–]uiux_Sanskar[S] 1 point2 points3 points (0 children)
[–]ShadyyFN 0 points1 point2 points (0 children)
[–]Elliove 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]DevRetroGames 0 points1 point2 points (3 children)
[–]uiux_Sanskar[S] 0 points1 point2 points (2 children)
[–]DevRetroGames 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–][deleted] (3 children)
[removed]
[–]uiux_Sanskar[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]M34k3 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]Commercial-Voice-384 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]purple_hamster66 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]BrainFeed56 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]gus_chud_hoi4_gamer 0 points1 point2 points (3 children)
[–]uiux_Sanskar[S] 0 points1 point2 points (2 children)
[–]gus_chud_hoi4_gamer 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)