Back

Sanskar

Keen Learner and Exp... • 2d

Day 6 of learning python as a beginner. 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) 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.

Reply
4

More like this

Recommendations from Medial

Image Description

Sanskar

Keen Learner and Exp... • 1d

Day 7 of learning python as a beginner. Topic: making a dynamic to-do list. Yesterday I created a basic to-do list and some people suggested and gave me a challenge that I should make it more dynamic so that the user can choose the day where he wan

See More
1 Reply
1
5

Aashrith Arun

 • 

Thesodopreneur.com • 8d

Day 4 - Set up Notion calendar time blocking + automation. I tick a box once the task is done, and it blocks the same time (next week). I have a huge list of recurring tasks, so this is quite helpful.

Reply
4

Suman solopreneur

Exploring peace of m... • 6m

Atomic Habits: After reading the book that a friend of a nonsmoker suggested, the author discovered that it helps them connect their cue with other helpful actions (i.e., he simply changed their perspective on smoking to any other useful things), cha

See More
Reply
1
6
Image Description
Image Description

Aashish Kumar Singh

Going to be A goat • 3m

Can i know that why Medial mobile app is so smooth, which technology they used because it is faster than instagram, linkedin

2 Replies
11
Image Description
Image Description

UBED

On my way to Buildin... • 1y

CREATING LIST OF BEST EVER AI's ~ (Give your small Contribution✨) Mention the best Ai website or application you ever used . Also mentioned it's work and speciality!! Tell me about a cool AI website or app you've used? What does it do and what make

See More
8 Replies
2
11

Sanskar

Keen Learner and Exp... • 3d

Day 5 of learning python as a beginner. Topic: Functions On my previous day post many people shared their github where I was introduced to def functions and since then I started learning more about def functions. Thank you all those people who are

See More
Reply

Rishi Chavan

Inquisitive • 3m

Apple doesn't feel luxurious anymore! Back in the days I remember when I was a child I used to go to malls and where there was an apple store I used to sneak in and used their newly launched iphones just because it was a great experience. Seeing an

See More
Reply
8

Download the medial app to read full posts, comements and news.