1
00:00:00,630 --> 00:00:07,740
Quite like every primary language, sea contains a number of key words that are reserved by the language

2
00:00:07,740 --> 00:00:09,760
itself or its own operations.

3
00:00:10,230 --> 00:00:16,200
Those key words cannot be used for any other purpose other than what the Python designers have used

4
00:00:16,200 --> 00:00:17,460
them and defined them for.

5
00:00:17,760 --> 00:00:24,090
To, for example, you can't take a reserved keyword and use it to declare a variable or to create a

6
00:00:24,090 --> 00:00:26,430
class or a function.

7
00:00:27,150 --> 00:00:31,220
If you do, you'll get an error message from the Python interpreter.

8
00:00:31,860 --> 00:00:34,620
First, have a look at some examples of good here.

9
00:00:34,650 --> 00:00:41,350
And I have a secret set that I'm using the Sony version of the Python language.

10
00:00:41,370 --> 00:00:45,510
You can see I'm using version three point seven of C Python here.

11
00:00:45,750 --> 00:00:53,880
And it also appears down here in the shell of brought up in the browser in one of the tabs, this file

12
00:00:53,880 --> 00:00:59,910
here, which is one of the library files it will be using in a later part of this course.

13
00:01:00,300 --> 00:01:07,260
And you can see that some of the words that appear in the code are highlighted based on the theme that

14
00:01:07,260 --> 00:01:07,980
I've selected.

15
00:01:08,430 --> 00:01:14,670
Those letters appear bold, kind of, I guess, reddish type of color.

16
00:01:14,940 --> 00:01:21,230
And these are indicated as language or python reserved keywords.

17
00:01:21,630 --> 00:01:26,520
Other words, such as time, for example, are also important words.

18
00:01:26,520 --> 00:01:32,970
In this case, time is the name of one of the modules that are used are being used in this sketch,

19
00:01:32,970 --> 00:01:34,740
but not in this script.

20
00:01:34,980 --> 00:01:38,030
But they're not Python reserved words.

21
00:01:38,060 --> 00:01:44,460
These are words that are used by developers at a later time to create something like, in this case,

22
00:01:44,460 --> 00:01:45,270
a module.

23
00:01:45,790 --> 00:01:51,030
You've got some other words, such as this one here, which is simply a fireball.

24
00:01:51,030 --> 00:01:57,140
In this case, it's a constant defined inside the code and there's plenty of those.

25
00:01:57,160 --> 00:02:00,840
So let's have a look at some more keywords you can see here.

26
00:02:00,840 --> 00:02:03,810
Class got its own color, like Dave.

27
00:02:03,900 --> 00:02:06,330
You can see both of those are reserved keywords.

28
00:02:06,630 --> 00:02:13,890
And Tony has got a specific way of highlighting these reserve key words in the code.

29
00:02:14,130 --> 00:02:20,550
And those look different to other keywords, such as Moad, for example, which are defined by the developer

30
00:02:20,790 --> 00:02:24,190
and not reserved by the language itself.

31
00:02:25,110 --> 00:02:31,830
So if you're wondering which are the reserved keywords in the C language, then you need to look at

32
00:02:31,830 --> 00:02:34,280
the documentation and brought up the documentation.

33
00:02:34,300 --> 00:02:41,820
The relevant part here in my browser, I'm looking at Python three at the lexical analysis page.

34
00:02:42,300 --> 00:02:44,430
Scroll down a little.

35
00:02:44,550 --> 00:02:52,620
You'll see right here there's a list of reserved keywords or any other keywords cannot be used by anything

36
00:02:52,620 --> 00:02:52,950
else.

37
00:02:53,490 --> 00:03:00,090
Now, if you do use those keywords for something else, let's say, for example, let's pick the keyword

38
00:03:00,090 --> 00:03:06,480
and and let's see if we can try and create a variable such as this.

39
00:03:06,750 --> 00:03:07,110
Right.

40
00:03:07,360 --> 00:03:15,360
If you can see that even in the show, Thawne has highlighted the keyword and as a reserved keyword.

41
00:03:15,810 --> 00:03:18,720
And of course, I got an error message.

42
00:03:19,190 --> 00:03:21,150
It doesn't know what I mean by this.

43
00:03:21,480 --> 00:03:25,290
If I just say A equals three, on the other hand, no problem at all.

44
00:03:25,440 --> 00:03:28,830
I create the variable and I assign a value to it.

45
00:03:29,670 --> 00:03:30,060
All right.

46
00:03:30,070 --> 00:03:32,160
So I'm going to leave it at this.

47
00:03:32,170 --> 00:03:37,800
Just remember that there are particular words in Python that you cannot use for anything other than

48
00:03:37,800 --> 00:03:40,980
their intended purpose by design of the language.

49
00:03:41,220 --> 00:03:43,910
And those are the three key words right here.
