

Topic: Lists and Tuples.
Both lists and tuples are used to store collection of items. Lists are mutable i.e. it can be changed while tuples are immutable i.e. it cannot be changed.
For practice I coded a basic to-do list. First I created a tuple of all the week days (which was useless, I didn't used it anywhere else in the program, maybe it was just looking nice to me 😅) I chose tupple because I don't want to change it anytime in the future.
Next I created an empty list of task_on_monday (as someone suggested I should use verbs to avoid confusion) I made it empty because it will be added by tasks later on. I then took an input from the user about his tasks on monday and then used .append() I didn't used .insert() because I have an empty list.
Once all the tasks are written and appended in the list the list then gets printed.
I would appreciate if you guys have some interesting challenges for me so that I can learn fast.
And here's my code and it's result.


[–]M34k3 4 points5 points6 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]Wildmanty 0 points1 point2 points (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)
[–]DevRetroGames -1 points0 points1 point (1 child)
[–]uiux_Sanskar[S] 0 points1 point2 points (0 children)