WEBVTT

0
00:00.320 --> 00:01.010
Hey, guys.

1
00:01.010 --> 00:04.370
Welcome to Day 38 of 100 Days of Code.

2
00:04.400 --> 00:08.360
Now, today, I've got a challenge project for you.

3
00:08.360 --> 00:16.550
And this challenge project is going to be building an Exercise Tracking Application using Python and

4
00:16.550 --> 00:17.690
Google Sheets.

5
00:17.780 --> 00:23.870
One of the things I've been trying to do recently is to track my workouts, and I've been doing that

6
00:23.870 --> 00:25.880
on pretty much pen and paper.

7
00:25.880 --> 00:30.560
But wouldn't it be nice if we could track the workout that we're doing?

8
00:30.560 --> 00:31.460
What time?

9
00:31.460 --> 00:38.210
How long we've been doing the exercises for, and also figure out how many ice creams we can eat because

10
00:38.210 --> 00:39.650
of the workout that we did.

11
00:39.650 --> 00:43.370
So tracking the amount of calories we've used up as well.

12
00:43.910 --> 00:52.280
Now, a lot of the inspiration for this project comes from the recent news on the OpenAI's GPT3

13
00:52.280 --> 00:59.110
AI model. And it's a really smart natural language processing model where, for example, if you went

14
00:59.110 --> 01:01.930
onto Wikipedia, you found an article on bread,

15
01:01.930 --> 01:06.130
you decided to use this model to ask it, well, why is bread so fluffy?

16
01:06.160 --> 01:11.410
It can actually search through all of the text and find you the relevant part.

17
01:11.410 --> 01:18.160
So it's doing some intelligent stuff behind the scenes to understand what you're saying, and also understand

18
01:18.160 --> 01:19.840
what the article is all about,

19
01:19.840 --> 01:26.110
and this is called natural language processing, but it's just a very powerful one.

20
01:26.860 --> 01:33.610
Now, in our case, we're also going to use natural language processing, and we're going to write down

21
01:33.610 --> 01:38.230
the exercises that we did but in a normal English sentence.

22
01:38.440 --> 01:45.190
And at the end of the lesson, I'm going to show you a way that we can run our Python console online

23
01:45.190 --> 01:47.350
using an online code editor.

24
01:47.380 --> 01:53.260
Now I've pulled up this same page but on the Chrome browser on my mobile phone.

25
01:53.260 --> 01:58.210
So this is what I might do after a gym workout, or after a quick cycle,

26
01:58.210 --> 02:05.110
and what we're going to try and do is to get the data to go into our spreadsheet here on Google Sheets.

27
02:05.500 --> 02:15.630
So here I'm going to type that I ran 5K, and cycled for let's say, 20 minutes.

28
02:15.960 --> 02:21.510
So this is my full input and it's pretty much just a plain English sentence.

29
02:21.540 --> 02:25.770
Now I'm going to go ahead and hit Return to trigger the code to run,

30
02:25.770 --> 02:32.250
and immediately you can see that my activities have been logged. So the date and time have been added

31
02:32.250 --> 02:33.480
automatically.

32
02:33.540 --> 02:40.620
It's understood that one of my activities was running and it figured out the duration based on the distance,

33
02:40.620 --> 02:46.140
So on average, it might take somebody 31 minutes in order to 5 kilometers.

34
02:46.140 --> 02:51.180
And then it worked out the number of calories I've expended doing that activity.

35
02:51.180 --> 02:57.660
And it did the same thing for my cycling, except this time the duration comes from my input and the

36
02:57.660 --> 03:00.510
calories is calculated automatically.

37
03:00.780 --> 03:02.490
So this is really exciting.

38
03:02.490 --> 03:03.960
And the best part?

39
03:03.960 --> 03:06.330
You're going to be building it all by yourself.

40
03:06.890 --> 03:12.560
You're going to be using a bunch of things that you've learned so far, including the Python DateTime strftime()

41
03:12.560 --> 03:20.120
method, using APIs, making POST Requests, creating Authorization Headers, and Environment

42
03:20.120 --> 03:20.990
Variables.

43
03:20.990 --> 03:26.450
You're going to be doing a bunch of this step-by-step by yourself, and if you head over to the next

44
03:26.450 --> 03:29.540
lesson, there's the instructions for how to get started.

45
03:29.540 --> 03:33.290
So I hope you're excited to get started and I'll see you on the next lesson.