Most voted "pep8" questions
6 questions
Sort by count of
-
7
votes3
answers1500
viewsWhen to use blank lines in a Python program?
Skipping lines is one of the aspects that make a program well indented? If so, what is the criteria used to skip lines?
-
3
votes1
answer243
viewsHow to validate a script in PEP8?
I noticed some questions that asked about PEP8, something like "in this way is correct?", recent example: Problems with PEP8 indentation rules Then I wondered, is there any way to know if the code…
-
3
votes1
answer49
viewsSimplficando chained comparisons
According to pycharm (which is with the default settings for pep8) says it is possible to simplify this line. elif student['averange'] >= 5 and student['averange'] < 7: student['situation'] =…
-
3
votes1
answer153
viewsAny more pythonic way to solve the problem below?
Create a function that returns the expression value: 2/3 + 3/5 + 4/7 + 5/9 + ... + n/m, to a user-defined value of n. Check that the user-defined n value is positive and, if not, request another…
-
1
votes1
answer112
viewsDoubts regarding the PEP8
I read the PEP8 but did not understand very well when using 2 blank spaces. I must use 2 spaces to separate a section of imports from another section? What sections a Python file normally displays?…
-
0
votes1
answer1063
viewsHow to use pep8 in Vscode?
I added the extension to the file Settings.json, but when compiling it does not show the errors in the default it should, how can I add PEP8 and test in vscode?