Python Best Practices: Learn to Write Clean Python Code
Learn to Write Clean, Readable, and Maintainable Python Code Following the Python Style Guide PEP 8 (+ Tips and Tools)
Lo que serás capaz de hacer
Learn to write Clean Python Code following the Official Python Style Guide and Python Best Practices. Expand your skills with engaging video lectures, diagrams, quizzes, articles, and additional resources. This course is your Python Best Practices Handbook where you can find Python best practices and tips to write "pythonic" code. Learn to Write Clean Python Code and Take your Python Skills to the Next Level Write clean, readable, and maintainable Python code. Assign meaningful names to your variables, functions, classes, and methods. Learn how to indent Python code following the Python Style Guide. Apply Python best practices for line length, line breaks, and blank lines. Use whitespaces appropriately with variables, parentheses, operators, commas, colons, and semicolons. Learn Python best practices to write comments in your code and why they are helpful to write readable code. Apply Python best practices to work with strings, sequences, operators, functions, loops, files, and object-oriented programming. Plus, learn additional tips to write "pythonic" code (the walrus operator, list comprehension, dictionary comprehension, and more...) Course Updates The course is frequently updated with new lectures, projects, and resources: September 2023 - NEW! Code editor updated to Visual Studio Code. September 2023 - NEW! Updated the PDF course study guide. September 2023 - NEW! Updated lectures with a new style. August 2023 - NEW! New discussion topics. August 2023 - NEW! Updated articles. Python and Clean Code: In-demand Skills Around the World Python is currently one of the most popular programming languages and its popularity continues to rise every year. It is used for real-world applications in diverse areas such as Web Development, Data Science, Machine Learning, Artificial Intelligence and many more. If you are learning Python or if you already have some experience with this language, learning how to write clean, readable, and concise Python code following the best practices of the language is your next step into the amazing and powerful world of Python. Learning Material & Resources Throughout the course, you will find these resources: Video Lectures: video lectures with carefully designed graphics and diagrams. You will learn the best practices of each topic with illustrative examples. Quizzes: check your knowledge with 45+ quizzes with 213+ questions that provide unlimited attempts and instant feedback. Articles: read articles with detailed explanations and illustrations to complement your knowledge. Study Guide: review for the course exam with a detailed and unique PDF study guide with 120+ questions . Course Exam: take a final course exam with 30+ questions to test your knowledge. The exam has unlimited attempts and detailed results for each attempt. What makes this course unique? This course is unique because of its emphasis on providing visual and detailed explanations of the best practices of Python. You will not only learn how to use these principles in Python, you will understand the purpose of each guideline and visualize it. Unique study materials complement the course experience. You will find a PDF study guide specifically designed for the course with 120+ questions on the course content. You will check your knowledge with Quizzes that will make you think more deeply about the topics presented in each section and you will receive instant feedback to check your answers. You will receive a Certificate of Completion that you can add to your CV and social media profiles to showcase your new skills. You will also have Lifetime Access to the course. You are very welcome to watch the preview lectures and check out the full course curriculum. If you are looking for an engaging, visual, and practical course, then you've found it. Enroll now, add "Python Best Practices" and "Clean Code" to your resume, and showcase your new skills.
- How to write Clean Python Code following the Python Style Guide (PEP 8).
- Best practices for naming variables, functions, classes, methods, and sequences.
- Best practices for indentation, line breaks, blank lines, and whitespaces in Python.
- How to write clean Python loops with enumerate(), zip(), break, and the else clause.
- Best practices to work with Object-Oriented Programming in Python.
- How to work with files following the Python Style Guide.
Temario
UNIDAD 1 - Welcome to the Course: Python Best Practices · 4 leccionesUNIDAD 1 - Welcome to the Course: Python Best Practices
UNIDAD 1 - Welcome to the Course: Python Best Practices
- Importance of Writing Clean Code
- Welcome to the Course - Important Course Information
- Introduce Yourself and Share your Goals
- When to Follow PEP 8 Guidelines (and When Not To)
UNIDAD 2 - Variables Best Practices in Python · 12 leccionesUNIDAD 2 - Variables Best Practices in Python
UNIDAD 2 - Variables Best Practices in Python
- Welcome to this Section
- Naming Conventions in Programming
- Naming Conventions in Programming
- Variable Naming Rules and Conventions in Python
- Variable Naming Best Practices
- Variable Names That You Should Avoid in Python
- How to Solve Naming Conflicts with Python Keywords
- Naming Rules and Guidelines
- Constants in Python
- Constants in Python
- Boolean Variables: Naming Conventions
- Discussion Topic: Share your Thoughts
UNIDAD 3 - Indentation Best Practices in Python · 11 leccionesUNIDAD 3 - Indentation Best Practices in Python
UNIDAD 3 - Indentation Best Practices in Python
- Welcome to this Section
- Importance of Indentation in Python
- Indentation Guidelines (Tabs vs. Spaces)
- Important Concept: Hanging Indentation
- Indentation Guidelines
- How to Indent and Unindent Code in Visual Studio Code
- Tabs to Spaces and Spaces to Tabs
- Change Spaces per Level of Indentation in Visual Studio Code
- Indentation Best Practices for Multi-line Conditions
- Indentation Best Practices in Python
- Discussion Topic: Share your Thoughts
UNIDAD 4 - Lines Best Practices: Break, Length, and Blank Lines · 13 leccionesUNIDAD 4 - Lines Best Practices: Break, Length, and Blank Lines
UNIDAD 4 - Lines Best Practices: Break, Length, and Blank Lines
- Welcome to this Section
- Line Length Limit
- Line Length Limit
- Implied Line Continuation in Python
- Line Breaks with Backslashes
- Implied Line Continuation vs. Backslashes
- Binary Operators and Line Breaks
- Binary Operators and Line Breaks
- Avoid Writing Compound Statements in a Single Line
- Avoid Compound Statements
- Blank Lines in Functions, Methods, and Classes
- Blank Lines in Python
- Discussion Topic: Share your Thoughts
UNIDAD 5 - Whitespace Best Practices in Expressions and Statements · 11 leccionesUNIDAD 5 - Whitespace Best Practices in Expressions and Statements
UNIDAD 5 - Whitespace Best Practices in Expressions and Statements
- Welcome to this Section
- Whitespace and Variables
- Whitespace and Variables
- Whitespace and Parentheses, Brackets, and Braces
- Whitespace and Parentheses
- Whitespace and Commas, Colons, and Semicolons
- Whitespace and Commas, Colons, and Semicolons
- Whitespace and Operators
- Whitespace and Operators
- Trailing Whitespace Best Practices
- Discussion Topic: Share your Thoughts
UNIDAD 6 - Comments and Docstrings Best Practices · 14 leccionesUNIDAD 6 - Comments and Docstrings Best Practices
UNIDAD 6 - Comments and Docstrings Best Practices
- Welcome to this Section
- Importance of Comments to Write Clean Code
- Bad Practice: Over-Commenting Your Code
- Commenting Basics
- Inline Comments
- Inline Comments
- Block Comments
- Block Comments
- Introduction to Docstrings
- One-Line Docstrings
- Multi-Line Docstrings
- Print and Read Docstrings with __doc__
- Docstrings Best Practices
- Discussion Topic: Share your Thoughts
UNIDAD 7 - Strings Best Practices in Python · 12 leccionesUNIDAD 7 - Strings Best Practices in Python
UNIDAD 7 - Strings Best Practices in Python
- Welcome to this Section
- Single-Quoted vs. Double-Quoted Strings
- Triple-Quoted Strings Best Practices
- String Quotes Guidelines
- Spaces in String Slicing
- Spaces in String Slicing
- String Methods vs. The string Module
- How to Concatenate Strings to Optimize Performance
- How to Check Prefixes and Suffixes
- String Methods
- Whitespace in Python Strings (+ How to Trim Whitespace)
- Discussion Topic: Share your Thoughts
UNIDAD 8 - Operators Best Practices in Python · 13 leccionesUNIDAD 8 - Operators Best Practices in Python
UNIDAD 8 - Operators Best Practices in Python
- Welcome to this Section
- Quick Tip: How to Leave or Update Your Review
- Parentheses in Expressions and Statements
- Comparison Operators Chaining
- Parentheses and Comparison Operators Chaining
- The is Operator: Comparison to None
- is not ... vs. not ... is
- Best Practices for the is Operator
- Truthy and Falsy Values
- Example of Truthy and Falsy Values
- Truthy and Falsy Values for Comparisons
- Quick Review: Operators, Spaces, and Line Breaks
- Discussion Topic: Share your Thoughts
UNIDAD 9 - Sequences Best Practices (Lists, Tuples, and Dictionaries) · 10 leccionesUNIDAD 9 - Sequences Best Practices (Lists, Tuples, and Dictionaries)
UNIDAD 9 - Sequences Best Practices (Lists, Tuples, and Dictionaries)
- Welcome to this Section
- How to Write Multi-Line Constructs (Lists, Tuples, Dictionaries)
- How to Write Multi-Line Constructs (Lists, Tuples, Dictionaries)
- Sequences as Truthy and Falsy Values in Conditionals
- Sequences as Truthy and Falsy Values in Conditionals
- List Comprehension (+ When to use it)
- List Comprehension
- Dictionary Comprehension
- Dictionary Comprehension
- Discussion Topic: Share your Thoughts
UNIDAD 10 - Functions Best Practices in Python · 11 leccionesUNIDAD 10 - Functions Best Practices in Python
UNIDAD 10 - Functions Best Practices in Python
- Welcome to this Section
- Functions Naming Guidelines
- Functions Best Practices
- Functions Basic Guidelines
- Blank Lines in Functions
- Parameters and Arguments Best Practices
- Multi-line Parameters Lists
- return Statement Best Practices
- Whitespace, Keyword Arguments, and Default Values
- Functions Best Practices
- Discussion Topic: Share your Thoughts
UNIDAD 11 - Write Clean Python Loops (Tips + Tools) · 14 leccionesUNIDAD 11 - Write Clean Python Loops (Tips + Tools)
UNIDAD 11 - Write Clean Python Loops (Tips + Tools)
- Welcome to this Section
- How to Iterate Over Sequences Using a For Loop
- Iterating Over Sequences
- How to Define Multiple Loop Variables in a For Loop
- Multiple Loop Variables
- Iterate Over Sequences and Indices Using enumerate()
- enumerate(): Optional start Parameter
- Basics of enumerate()
- Iterate over Multiple Sequences using zip()
- Basics of zip()
- The break Statement in Python
- The else Clause in Python Loops
- The else Clause in Python Loops
- Discussion Topic: Share your Thoughts
UNIDAD 12 - File Handling Best Practices · 6 leccionesUNIDAD 12 - File Handling Best Practices
UNIDAD 12 - File Handling Best Practices
- Welcome to this Section
- Handling Files with Context Managers
- Open Modes: Read, Write, Append
- How to Open Multiple Files with Context Managers
- File Handling Best Practices
- Discussion Topic: Share your Thoughts
UNIDAD 13 - Object-Oriented Programming (OOP) Best Practices · 16 leccionesUNIDAD 13 - Object-Oriented Programming (OOP) Best Practices
UNIDAD 13 - Object-Oriented Programming (OOP) Best Practices
- Welcome to this Section
- Class Naming Conventions
- Class Naming Conventions
- Best Practices for Blank Lines in Class Definitions
- Public vs. Non-Public Attributes in Python
- Properties and @property
- Attributes in OOP
- Methods Naming Conventions and Best Practices
- Methods First Arguments (self, cls)
- Methods in OOP
- How to Compare Object Types
- How to Import a Class
- Implement Rich Comparison Methods
- Inheritance Best Practices
- Python OOP Best Practices
- Discussion Topic: Share your Thoughts
UNIDAD 14 - How to Write Pythonic Code · 14 leccionesUNIDAD 14 - How to Write Pythonic Code
UNIDAD 14 - How to Write Pythonic Code
- Welcome to this Section
- Trailing Commas Best Practices
- Trailing Commas Best Practices
- Swap Variables with Tuple Assignment
- Swap Variables
- Reverse a String
- Reverse a String
- Merge and Update Dictionaries
- Merge and Update Dictionaries
- Use map() to Process Iterables without a Loop
- The map() Function
- The Walrus Operator in Python
- The Walrus Operator
- Discussion Topic: Share your Thoughts
UNIDAD 15 - Final Steps: Course Exam and Congratulations · 5 leccionesUNIDAD 15 - Final Steps: Course Exam and Congratulations
UNIDAD 15 - Final Steps: Course Exam and Congratulations
- Study Guide and Instructions for the Course Exam
- Course Exam
- Congratulations! You Finished the Course
- Download Your Certificate and Share your Thoughts
- Bonus Lecture
Tu certificado lo emite la SEP, no solo una plataforma
Al demostrar la competencia recibes un certificado emitido por la Secretaría de Educación Pública a través del Gobierno del Estado de México: un documento oficial que puedes presentar con confianza ante cualquier empleador o institución.
Tu certificado con INEC
- Lo emite la Secretaría de Educación Pública (SEP), a través del Gobierno del Estado de México
- Documento oficial con folio verificable en línea
- Lo otorga la Universidad Tecnológica Fidel Velázquez
Otras plataformas en línea
- Constancia privada emitida por la misma plataforma
- Solo acredita horas cursadas o asistencia
- Sin respaldo de una autoridad educativa
Tu itinerario, de la inscripción al certificado
- 1
Inscripción con pago único
Pagas $2,800 MXN una sola vez y entras de inmediato al curso.
- 2
Estudias a tu ritmo
15 unidades con videos, lecturas y actividades, disponibles 24/7 durante 12 meses.
- 3
Cuestionarios por unidad
47 cuestionarios para comprobar lo aprendido.
- 4
Certificado
Emitido por la SEP a través del Gobierno del Estado de México, con folio verificable.
Un certificado oficial de la SEP
- Emitido por la Secretaría de Educación Pública (SEP), a través del Gobierno del Estado de México. No es una constancia privada: es un documento oficial, y ese respaldo marca la diferencia frente a otras plataformas en línea.
- Contenido impartido por Estefania Cassingena Navone.
- Folio y QR verificables para compartirlo con quien te contrate.
Empieza hoy, a tu ritmo
Un solo pago y acceso inmediato al curso completo durante 12 meses.
- 15 unidades · 166 lecciones · 60 h
- 12 meses de acceso
- 47 cuestionarios de evaluación
- Certificado emitido por la SEP (Gob. del Estado de México) con folio verificable
Sobre tu inscripción
¿Cómo es el pago?
Un solo pago de $2,800 MXN. No hay mensualidades ni cargos recurrentes.
¿Cuánto tiempo tengo acceso?
12 meses desde tu inscripción, 24/7, para avanzar a tu ritmo.
¿Quién imparte el contenido?
El curso es impartido por Estefania Cassingena Navone; INEC gestiona tu inscripción, evaluación y certificado.
¿Qué pasa cuando vence mi acceso?
Puedes renovar tu cuenta tú mismo desde la plataforma, sin trámites ni esperas.


