1
00:00:01,760 --> 00:00:04,939
Yesterday we worked on the show case.

2
00:00:04,970 --> 00:00:10,400
What we did exactly is we added some numbers in front of the to do items.

3
00:00:10,670 --> 00:00:17,030
So when the user wants to show the two two items in the command line, they now get that number in front

4
00:00:17,030 --> 00:00:18,650
of each to do.

5
00:00:19,070 --> 00:00:22,100
So that makes the outputs more user friendly.

6
00:00:22,760 --> 00:00:31,550
We implemented that by iterating over the to dos, using an enumerate function, and so we access the

7
00:00:31,550 --> 00:00:35,230
index and the item from the to this list.

8
00:00:35,240 --> 00:00:43,640
So Enumerate makes it possible to extract these two figures from a list.

9
00:00:45,330 --> 00:00:53,220
And then we use an F string, which always starts with an F in front, followed by these double quotes.

10
00:00:53,220 --> 00:01:00,420
Inside, you can enter normal characters such as a dash or other characters, but you can also enter.

11
00:01:02,090 --> 00:01:06,050
Variables and even expressions such as index plus one.

12
00:01:08,780 --> 00:01:12,950
So that expression will be replaced by its value.

13
00:01:13,580 --> 00:01:16,730
And that variable also will be replaced by its value.

14
00:01:17,720 --> 00:01:23,720
So we end up with one single string constructed by these elements.

15
00:01:25,530 --> 00:01:30,420
And so we print that string then in the command line.

16
00:01:31,800 --> 00:01:35,940
And that makes the showcase more user friendly.

17
00:01:38,370 --> 00:01:41,280
Yesterday we also added a complete.

18
00:01:42,850 --> 00:01:43,690
Case.

19
00:01:45,130 --> 00:01:49,990
This serves the users to mark a to do as complete as done.

20
00:01:51,940 --> 00:01:59,110
So for that we ask the user what is the number of the to do they want to complete.

21
00:02:00,830 --> 00:02:05,000
And then we used a pop method, which is a list method.

22
00:02:05,000 --> 00:02:11,600
So pop points to to do's and it removes the item with this index.

23
00:02:12,470 --> 00:02:14,480
So we get the number from here.

24
00:02:16,230 --> 00:02:22,340
And we subtract one to make it an index because list indexing starts from zero.

25
00:02:22,350 --> 00:02:23,520
And so we.

26
00:02:25,120 --> 00:02:27,520
We remove the tutu that has.

27
00:02:28,560 --> 00:02:31,590
That index, and that's what we did yesterday.

28
00:02:32,940 --> 00:02:35,760
A lot of interesting stuff coming also today.

29
00:02:35,760 --> 00:02:36,240
So.

30
00:02:37,230 --> 00:02:39,180
Let me show you that to you in the next video.

31
00:02:39,360 --> 00:02:40,130
See you there.

