К содержимому
learnspaceYOUR NEXT CHAPTER
ПРОСТРАНСТВО ОБУЧЕНИЯ
ГлавнаяКаталог курсовМоё обучениеCoursera

Знания без границ

Учитесь у лучших университетов и компаний мира.

Открыть Coursera
Интеграция
Пространство университета
Моё пространствоСтраница курса
↵
ЯЛичный кабинетСтудент
© 2026 LearnSpaceКаждый день — возможность узнать больше.Помощь
Intermediate Python: Modules, OOP & App Development · LearnSpace
Назад в каталог
courseraПрограммирование

Intermediate Python: Modules, OOP & App Development

Курс от Packt
Начальный≈ 23 чАнглийский
О курсеНавыкиПрограммаПреподаватели

О курсе

Advance your Python skills by exploring modules, file operations, decorators, and the principles of object-oriented programming. Learn to design robust applications using classes, inheritance, and error handling, and gain practical experience with dates, randomness, and testing. This course delves into intermediate Python topics, including working with modules, reading and writing files, and leveraging decorators for more flexible code. You will develop a deep understanding of object-oriented programming, learning how to define classes, use inheritance, and implement magic methods. The course also covers exception handling, working with dates and times, generating random data, and the essentials of unit testing and mocking. By the end, you will be equipped to design, build, and test more complex Python applications. The course uses a practical, example-driven approach, combining concise explanations with real-world code samples and quizzes to reinforce learning. Learners are encouraged to think critically and apply concepts to realistic programming scenarios, ensuring a smooth transition from theory to practice. This course is part two of a three-course Specialization designed to build a complete and cohesive understanding of the subject. While it offers valuable skills on its own, you'll gain the most benefit by progressing through all three courses as a structured learning journey. This course is based on Learn to Code with Python, by Boris Paskhaver. This course is licensed and distributed by Packt. All rights reserved. Packt is one of the world's most prolific publishers of cutting-edge technical content. For over two decades we've made it our mission to curate and publish the knowledge of only the very best technical experts. We focus on real-world courses that help our customers get the job done, with coverage that extends across a wide range of established and cutting-edge technical topics. If you're an individual or an organisation that embraces learning by doing, Packt is the perfect fit for you.

Навыки, которые вы освоите

Object Oriented Programming (OOP)Unit TestingFile I/OPackage and Software ManagementSoftware DesignFunctional DesignComputer ProgrammingPython ProgrammingCode ReusabilityTest ToolsMaintainabilityTest CaseObject Oriented Design

Программа курса

12 модулей · 154 учебных материалов

01Modules11 материалов

Mastering Python Modules and Imports

Introduction to the Course 'Intermediate Python: Modules, OOP & App Development'ЧтениеScripts, Modules, and the import KeywordВидеоThe Python Standard Library (The string, math, and this Modules)ВидеоThe __name__ Special VariableВидео

Учитесь у экспертов

Packt - Course Instructors

Преподаватель курса

Intermediate Python: Modules, OOP & App Development
В каталоге вашей программы

Инвестируйте в себя

Новые знания — в удобное для вас время.

Начать на Coursera

Обучение откроется на Coursera
в новой вкладке

Обучение на Coursera

≈ 23 ч

12 модулей

Язык: Английский

Часть программы вашего университета
Aliases with the as KeywordВидео
Import Specific Attributes with the from SyntaxВидео
Import All Attributes with * SyntaxВидео
The __init__.py File IВидео
The __init__.py File IIВидео
Resolving a Module Import IssueDIALOGUE
Structuring Python Programs with Modules and PackagesЗадание
02Reading from and Writing to Files6 материалов

Mastering File I/O in Python: Reading, Writing, and Appending Data

Reading a File with the open Function and read MethodВидеоRead File Line by LineВидеоWrite to a FileВидеоAppend to a FileВидеоUnderstanding File I/O in Python DIALOGUEWorking with Text Files in PythonЗадание
03Decorators18 материалов

Mastering Function Manipulation and Dynamic Behavior in Python

Higher Order Functions I: Functions as ArgumentsВидеоCoding Exercise SOLUTION: Higher Order FunctionsВидеоNested FunctionsВидеоHigher Order Functions II: Functions as Return ValuesВидеоCoding Exercise SOLUTION: Higher Order Functions IIВидеоScope I: Global vs. Local VariablesВидеоScope II: The LEGB RuleВидеоScope III: ClosuresВидеоThe global KeywordВидеоCoding Exercise SOLUTION: The global KeywordВидеоThe nonlocal KeywordВидеоIntro to DecoratorsВидеоArguments with Decorator Functions (*args and **kwargs)ВидеоReturned Values from Decorated FunctionsВидеоThe functools.wraps DecoratorВидеоDecorator Example from Flask LibraryВидеоDebugging a Decorator with Scope Issues DIALOGUEUnderstanding Functions and Scope in PythonЗадание
04Classes: The Basics11 материалов

Mastering Python Classes and Object Initialization

Intro to Object-Oriented ProgrammingВидеоClass Definition and InstantiationВидеоCoding Exercise SOLUTION: Class Definition and InstantiationВидеоThe __init__ MethodВидеоAdding Attributes to ObjectsВидеоSetting Object Attributes in the __init__ MethodВидеоCoding Exercise SOLUTION: The __init__ MethodВидеоDefault Values for AttributesВидеоCoding Exercise SOLUTION: Default Values for AttributesВидеоUnderstanding Classes and Object AttributesDIALOGUEFoundations of Python Object Oriented ProgrammingЗадание
05Classes: Attributes and Methods16 материалов

Mastering Class Behavior and Attribute Control in Python

Instance MethodsВидеоCoding Exercise SOLUTION: Instance MethodsВидеоProtected Attributes and Methods (Encapsulation)ВидеоCoding Exercise SOLUTION: Protected AttributesВидеоDefine Properties with the property MethodВидеоDefine Properties with Decorators (Alternate Approach)ВидеоCoding Exercise SOLUTION: PropertiesВидеоThe getattr and setattr FunctionsВидеоThe hasattr and deleteattr FunctionsВидеоClass MethodsВидеоCoding Exercise SOLUTION: Class MethodsВидеоClass AttributesВидеоAttribute Lookup OrderВидеоStatic MethodsВидеоDesigning a Python Class with Encapsulation and PropertiesDIALOGUEObject-Oriented Programming Concepts in PythonЗадание
06Classes: Magic Methods17 материалов

Mastering Python's Special Methods for Object Behavior

Intro to Magic MethodsВидеоString Representation with the __str__and __repr__ MethodsВидеоEquality with the __eq__ MethodВидеоMagic Methods for Comparison OperationsВидеоCoding Exercise SOLUTION: Equality and String RepresentationВидеоDocstringsВидеоCoding Exercise SOLUTION: DocstringsВидеоTruthiness with the __bool__ MethodВидеоThe namedtuple ObjectВидеоCoding Exercise SOLUTION: namedtupleВидеоLength with the __len__ MethodВидеоIndexing with the __getitem__and __setitem__ MethodsВидеоCoding Exercise SOLUTION: Custom Indexing and IterationВидеоThe __del__ MethodВидеоCoding Exercise SOLUTION: Magic MethodsВидеоExploring Python Magic Methods DIALOGUEPython Magic Methods and Special Class BehaviorsЗадание
07Classes: Inheritance19 материалов

Mastering Inheritance and Object-Oriented Design in Python

Intro to InheritanceВидеоDefine a SubclassВидеоCoding Exercise SOLUTION: Define a SubclassВидеоNew Methods on SubclassesВидеоOverride an Inherited Method on a SubclassВидеоCoding Exercise SOLUTION: Override a Method on SubclassВидеоThe super FunctionВидеоCoding Exercise SOLUTION: The super FunctionВидеоPolymorphism IВидеоPolymorphism IIВидеоCoding Exercise SOLUTION: PolymorphismВидеоName Mangling for PrivacyВидеоMultiple Inheritance I: Method Resolution OrderВидеоMultiple Inheritance II: Breadth First Search and Depth First SearchВидеоMultiple Inheritance III: Diamond-Shaped InheritanceВидеоThe isinstance Function and issubclass FunctionВидеоCompositionВидеоDesigning a Class Hierarchy for a Banking SystemDIALOGUEPrinciples of Inheritance and Polymorphism in PythonЗадание
08Exception Handling9 материалов

Mastering Error Handling in Python: From Basics to Custom Exceptions

Introduction to Error HandlingВидеоThe try-except BlockВидеоCatching One or More Specific ExceptionsВидеоThe raise KeywordВидеоUser-Defined ExceptionsВидеоException Inheritance HierarchiesВидеоThe else and finally BlocksВидеоUnderstanding Python Exception HandlingDIALOGUEUnderstanding Exception Handling in PythonЗадание
09Dates and Time9 материалов

Mastering Python's datetime Module: From Dates to Timedelta

The date ObjectВидеоThe time ObjectВидеоCoding Exercise SOLUTION: date and time ObjectsВидеоThe datetime Object IВидеоThe datetime Object II: The strftime MethodВидеоCoding Exercise SOLUTION: The datetime ObjectВидеоThe timedelta ObjectВидеоDebugging a Date Formatting Issue DIALOGUEWorking with Dates and Times in PythonЗадание
10The random Module5 материалов

Mastering Randomness in Python: Functions and Applications

The random, randint, and randrange FunctionsВидеоThe choice and sample FunctionsВидеоThe shuffle FunctionВидеоExploring Python's Random FunctionsDIALOGUEWorking with Randomness in PythonЗадание
11Testing Code: The Basics18 материалов

Mastering the Art of Unit Testing in Python

Introduction to Unit TestingВидеоThe assert StatementВидеоThe doctest ModuleВидеоThe unittest ModuleВидеоThe assertEqual MethodВидеоThe Purpose of TestingВидеоSkipping Tests and Expected FailuresВидеоAssertions - assertNotEqual and Custom Error MessagesВидеоAssertions - Test Object Identity with assertIs and assertIsNotВидеоAssertions - Test Truthiness and Falsiness (assertTrue and assertFalse)ВидеоAssertions - Test Nullness (assertIsNone and assertIsNotNone)ВидеоAssertions - Test Inclusion with assertIn and assertNotInВидеоAssertions - Test Object Type (assertIsInstance and assertNotIsInstance)ВидеоAssertions - Test Errors with assertRaisesВидеоThe setUp and tearDown MethodsВидеоThe setUpClass and tearDownClass MethodsВидеоDebugging a Failing Unit Test DIALOGUEFundamentals of Python Unit TestingЗадание
12Testing Code: Mocking15 материалов

Mastering Mocking in Python Unit Tests

Intro to Mocking with the Mock ClassВидеоThe return_value AttributeВидеоThe side_effect AttributeВидеоCoding Exercise SOLUTION: Creating MocksВидеоThe Mock vs. MagicMock ObjectsВидеоMock CallsВидеоPutting It All TogetherВидеоVerifying DoublesВидеоPatch I: The patch FunctionВидеоPatch II: The @patch DecoratorВидеоPatch III: What patch PatchesВидеоExploring Mocking with unittest.mockDIALOGUEConclusion to the Course 'Intermediate Python: Modules, OOP & App Development'ЧтениеPrinciples and Practices of Mocking in PythonЗаданиеIntermediate Python: Modules, OOP, and Application Development Final AssessmentЗадание