+ 3

[python]PEP

Hye everybody. What is PEP 8? Can anyone tell me it's usage? It will be kinda good with examples.

8th Oct 2020, 4:26 PM
Hardik
Hardik - avatar
7 Answers
+ 3
pep 8 is a format to write your code in. keeps everything neat, uniform, readable, and professional. examples of some of the rules: *spaces between operators (4 + 2 not 4+2) *if not in a class, seperate each user created function by 2 lines *spaces in your iterables ([1, 2, 3] not [1,2,3])
8th Oct 2020, 4:39 PM
Slick
Slick - avatar
+ 2
If you have pythone installed in your machine just add pip install "some package download usage"
8th Oct 2020, 4:35 PM
Ananiya Jemberu
Ananiya Jemberu - avatar
+ 2
Ananaya Jemberu I'm asking about PEP. Not about thr installation of pip. Hope you'll again help me✌️
8th Oct 2020, 4:37 PM
Hardik
Hardik - avatar
+ 2
That means Slick without using it a code can't be "neat,readable or professional"? //Just a general query
8th Oct 2020, 4:40 PM
Hardik
Hardik - avatar
+ 2
Nah not at all. This is just one of the many ways you can write your code. The point is to keep it uniform. If you write some code one way and other code another way, it just makes it harder on you or anybody that would read your codes later. You build your programs with the same format, they will be much easier to parse for human eyes
8th Oct 2020, 4:44 PM
Slick
Slick - avatar
+ 1
Ohh it used to format python code
8th Oct 2020, 4:38 PM
Ananiya Jemberu
Ananiya Jemberu - avatar