1
00:00:00,000 --> 00:00:09,040
In this video, you'll learn about PEP.

2
00:00:09,040 --> 00:00:11,600
PEP is the Python Enhancement Proposal.

3
00:00:11,600 --> 00:00:14,800
It contains guidelines and proposed improvements.

4
00:00:14,800 --> 00:00:19,520
PEP 8 is the current version, and it defines coding style to ensure consistency across

5
00:00:19,520 --> 00:00:20,520
projects.

6
00:00:20,520 --> 00:00:23,719
So, it's best practices for coding.

7
00:00:23,719 --> 00:00:26,400
And the Python core standard library follows it.

8
00:00:26,400 --> 00:00:28,959
And as a programmer, you should follow it as well.

9
00:00:28,959 --> 00:00:34,480
There are some recommendations, and one of the recommendations is about indentation and

10
00:00:34,480 --> 00:00:35,480
line length.

11
00:00:35,480 --> 00:00:42,439
So, you should use four spaces for indentation, and the maximum line length is 79 characters.

12
00:00:42,439 --> 00:00:45,279
Then there are some naming conventions.

13
00:00:45,279 --> 00:00:49,080
Variables and functions are in lowercase with underscores.

14
00:00:49,080 --> 00:00:54,240
As you can see noted here, lowercase underscore, with underscore, underscores.

15
00:00:54,240 --> 00:00:58,599
And classes use cap words, where every word starts with a capital.

16
00:00:58,599 --> 00:01:00,639
Classes are in uppercase.

17
00:01:00,639 --> 00:01:08,080
And there's also a recommendation about whitespaces after commas, and no spaces before parentheses.

18
00:01:08,080 --> 00:01:09,959
The import order is as following.

19
00:01:09,959 --> 00:01:12,320
First, there's a standard library.

20
00:01:12,320 --> 00:01:16,160
Then there is the external packages, and then there is the local modules.

21
00:01:16,160 --> 00:01:19,839
And these are the most important recommendations in the PEP 8 standard.

