1
00:00:00,690 --> 00:00:00,840
Okay.

2
00:00:00,960 --> 00:00:03,090
Welcome to today's exercise.

3
00:00:03,330 --> 00:00:09,120
For this exercise, you have to plot your diary tone.

4
00:00:09,390 --> 00:00:10,980
Let me explain what that is.

5
00:00:11,250 --> 00:00:14,640
So this will consist of a streamlined app.

6
00:00:16,650 --> 00:00:24,350
And this app will read a series of text files which you can find attached in the lecture resources.

7
00:00:24,360 --> 00:00:27,600
So these are seven text files.

8
00:00:28,860 --> 00:00:36,180
So please take these text files, put them in a folder and place that folder in your project project

9
00:00:36,180 --> 00:00:36,920
directory.

10
00:00:36,930 --> 00:00:41,610
So each of these have some fake diary entries.

11
00:00:41,610 --> 00:00:49,830
So someone has written something about their day for this particular day, how their day was then.

12
00:00:50,720 --> 00:00:53,270
There's another entry for another date.

13
00:00:59,300 --> 00:01:01,490
Another date, another another.

14
00:01:01,490 --> 00:01:04,550
So there are seven of them.

15
00:01:04,640 --> 00:01:12,950
So this graph here, what is plotting is the positivity of each day, the positivity coefficients.

16
00:01:12,950 --> 00:01:19,400
So 21st of October, 22nd, 23rd and so on.

17
00:01:19,430 --> 00:01:21,320
Same goes for negativity.

18
00:01:22,250 --> 00:01:29,240
So this other graph is plotting negativity as a line graph along the date.

19
00:01:29,240 --> 00:01:32,480
So date, negativity, data, positivity.

20
00:01:32,480 --> 00:01:35,000
And so these are your files.

21
00:01:35,480 --> 00:01:40,670
And if you want to listen to some hints, then please keep listening to this video.

22
00:01:40,670 --> 00:01:48,260
Otherwise you can pause here or you can end, you can stop this video and continue working and you can

23
00:01:48,260 --> 00:01:51,290
come better this minute to hear about the hints.

24
00:01:51,290 --> 00:01:51,650
Right?

25
00:01:51,650 --> 00:01:52,580
So some hints.

26
00:01:52,580 --> 00:02:01,490
The first hints is you can use the global library to get a list of these file names.

27
00:02:03,020 --> 00:02:11,000
A second hint is to use the sorted function to sort that list, because you might get a list which is

28
00:02:11,000 --> 00:02:13,730
not sorted by dates.

29
00:02:14,300 --> 00:02:20,420
But if you get the list of file paths and you put that file paths in a sorted function, that would

30
00:02:20,420 --> 00:02:24,650
make sure to sort out these file names in the correct order.

31
00:02:26,520 --> 00:02:27,870
So these are my two hints.

32
00:02:27,900 --> 00:02:28,380
Good luck.

33
00:02:28,410 --> 00:02:28,980
See you later.

