PEP8 Guidelines: Python Clean Coding [NEW 2023]

Learn PEP8 guidelines and write your Python code professionally

4.50 (72 reviews)
Udemy
platform
English
language
Software Engineering
category
instructor
PEP8 Guidelines: Python Clean Coding [NEW 2023]
22,353
students
5 hours
content
Sep 2022
last update
$54.99
regular price

What you will learn

Write Python code that conforms to PEP 8

Understand the reasoning behind the guidelines laid out in PEP 8

Set up your development environment so that you can start writing PEP 8 compliant Python code

Follow the correct naming conventions for packages, modules, objects, classes variables and more.

Implement the appropriate whitespacing between Python code components

Develop full scale professional Python projects

Learn the best clean code practices in Python

Description

The Complete PEP8 Professional Python Coding Course covers the PEP 8 document that provides guidelines and best practices on how to write Python code. The primary focus of PEP 8 is to improve the readability and consistency of Python code.

PEP 8 exists to improve the readability of Python code. But why is readability so important? Why is writing readable code one of the guiding principles of the Python language?

As Guido van Rossum said, “Code is read much more often than it is written.” You may spend a few minutes, or a whole day, writing a piece of code to process user authentication. Once you’ve written it, you’re never going to write it again. But you’ll definitely have to read it again. That piece of code might remain part of a project you’re working on. Every time you go back to that file, you’ll have to remember what that code does and why you wrote it, so readability matters.

If you’re new to Python, it can be difficult to remember what a piece of code does a few days, or weeks, after you wrote it. If you follow PEP 8, you can be sure that you’ve named your variables well. You’ll know that you’ve added enough whitespace so it’s easier to follow logical steps in your code. You’ll also have commented your code well. All this will mean your code is more readable and easier to come back to. As a beginner, following the rules of PEP 8 can make learning Python a much more pleasant task.

Following PEP 8 is particularly important if you’re looking for a development job. Writing clear, readable code shows professionalism. It’ll tell an employer that you understand how to structure your code well.

If you have more experience writing Python code, then you may need to collaborate with others. Writing readable code here is crucial. Other people, who may have never met you or seen your coding style before, will have to read and understand your code. Having guidelines that you follow and recognize will make it easier for others to read your code.


By the end of this course, you’ll be able to:

  • Write Python code that conforms to PEP 8

  • Understand the reasoning behind the guidelines laid out in PEP 8

  • Set up your development environment so that you can start writing PEP 8 compliant Python code

  • Follow the correct naming conventions for packages, modules, objects, classes variables and more.

  • Implement the appropriate whitespacing between Python code components

  • Develop full scale professional Python projects



Content

Introduction

Introduction
Important Course Notes
Source Code and Course Navigation
Install Python and PyCharm

Python Basics

Print Objects and Data Types
Taking Inputs From the User
Logical Operations
Exercise 1: Inputs and Logical Operations
Operations with Strings
Arithmetic Operations
Comparisons & Logical Operations
If Statements
Exercise 2: If Statements
Loops
Data Structures
What is PyCharm
PyCharm as the Major Python IDE
Python Basics Quiz

PEP 8 Code Lay-Out

What is PEP8?
Code Lay-Out
Tabs and Line Length
Object Oriented Spacing and Encoding
PEP 8 Imports and Dunder Names

Whitespace in Expressions and Statements

Trailing Commas
Comments and Documentation Strings
String Quotes and Pet Peeves
Whitespace in Functions and Logical Operations

Naming Conventions

Descriptive Naming Styles
Project Module and Variable Conventions
Functions, Methods and Instance Variables
Exceptions, Global and Local Variables
Constants and Interface Design

Annotations and Recommendations

Programming Recommendations
Function Annotations: Part 1
Function Annotations: Part 2

Screenshots

PEP8 Guidelines: Python Clean Coding [NEW 2023] - Screenshot_01PEP8 Guidelines: Python Clean Coding [NEW 2023] - Screenshot_02PEP8 Guidelines: Python Clean Coding [NEW 2023] - Screenshot_03PEP8 Guidelines: Python Clean Coding [NEW 2023] - Screenshot_04

Reviews

Satyam
January 22, 2023
The course is very detailed and the tutor explains every bit carefully and thoroughly. Loved the learning about PEP 8 guidelines as well as the nice game building at the end.

Coupons

DateDiscountStatus
5/17/202295% OFF
expired
5/26/2022100% OFF
expired
6/9/2022100% OFF
expired
6/22/2022100% OFF
expired
7/7/2022100% OFF
expired
7/21/2022100% OFF
expired
8/3/2022100% OFF
expired
8/11/2022100% OFF
expired
8/25/2022100% OFF
expired
9/6/2022100% OFF
expired
9/20/2022100% OFF
expired
10/11/2022100% OFF
expired
10/21/2022100% OFF
expired
11/15/2022100% OFF
expired
12/8/202288% OFF
expired
12/14/2022100% OFF
expired
12/28/2022100% OFF
expired
1/12/2023100% OFF
expired
1/20/2023100% OFF
expired
1/27/2023100% OFF
expired
2/10/2023100% OFF
expired
2/18/2023100% OFF
expired
3/14/2023100% OFF
expired
3/29/2023100% OFF
expired
4/20/2023100% OFF
expired
5/25/2023100% OFF
expired
6/7/2023100% OFF
expired

Charts

Price

PEP8 Guidelines: Python Clean Coding [NEW 2023] - Price chart

Rating

PEP8 Guidelines: Python Clean Coding [NEW 2023] - Ratings chart

Enrollment distribution

PEP8 Guidelines: Python Clean Coding [NEW 2023] - Distribution chart
ComiDoc
ComiDoc

Realtime Udemy coupons in our Telegram channel

topics
FREE
SkillShare
SkillShare

Unlimited access to 30 000 Premium SkillShare courses

topics
30-DAY FREE TRIAL
4669784
udemy ID
5/3/2022
course created date
5/9/2022
course indexed date
Bot
course submited by