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

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

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

Открыть Coursera
Интеграция
Пространство университета
Моё пространствоСтраница курса
↵
ЯЛичный кабинетСтудент
© 2026 LearnSpaceКаждый день — возможность узнать больше.Помощь
Using Python to Interact with the Operating System · LearnSpace
Назад в каталог
courseraIT и технологии

Using Python to Interact with the Operating System

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

О курсе

This course is designed to explore how to execute Python locally and organize and use code across different Python files. Learners will learn how to read and write different types of files, use subprocesses and input streams, create Bash scripts, and use regular expressions. This course also covers automatic testing and explains how to set up a developer environment on a personal machine. We’ll kick off by exploring how to execute Python locally, and organize and use code across different Python files. We'll then learn how to read and write different types of files, and use subprocesses and input streams. We'll also dive into Bash scripting and regular expressions -- both very powerful tools for anyone working with systems. We'll even touch on automatic testing, which allows us to automate how we check if our code is correct. To finish, we’ll put all this together by using the tools that we’ve acquired to process data and generate automatic reports. We’ll also explain how to set up your own developer environment in your machine. This is a key step in being able to write and deploy powerful automation tools.

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

File I/OFile ManagementUnit TestingTest Driven Development (TDD)Operating SystemsLinux CommandsOS Process ManagementScriptingBash (Scripting Language)Test Script DevelopmentTest AutomationCommand-Line InterfaceShell ScriptLinuxUnix ShellScripting LanguagesSoftware TestingDevelopment EnvironmentUnix CommandsDevelopment Testing

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

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

01Getting Your Python On25 материалов

Course Introduction

Course IntroductionВидеоWelcome to the courseЧтение

Getting Ready for Python

Intro to Module 1: Getting Your Python OnВидеоGetting Familiar with the Operating SystemВидео

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

Google Career Certificates

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

Using Python to Interact with the Operating System
В каталоге вашей программы

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

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

Начать на Coursera

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

Обучение на Coursera

≈ 33.1 ч

7 модулей

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

Субтитры: Арабский, Французский, Украинский, Бразильский португальский, Корейский, Немецкий, Индонезийский, Турецкий, Испанский, Японский

Часть программы вашего университета
Getting Your Computer Ready for PythonВидео
Setting up Your Environment on Windows (Optional)Видео
Setting up Your Environment on MacOS (Optional)Видео
Setting up Your Environment on Linux (Optional)Видео
Pointers for Getting Your Environment SetupЧтение
Test your knowledge: Getting ready for PythonЗадание

Running Python Locally

Interpreted vs. Compiled LanguagesВидеоHow to Run a Python ScriptВидеоYour Own Python ModulesВидеоWhat is an IDE?ВидеоSetting up Your EnvironmentЧтениеVirtual environmentsЧтениеTest your knowledge: Running Python locallyЗадание

Automating Tasks Through Programming

Benefits of AutomationВидеоPitfalls of AutomationВидеоPractical Automation ExampleВидеоIs it worth the time?ЧтениеTest your knowledge: AutomationЗадание

Module Review

Module 1 Wrap Up: Getting Your Python OnВидеоGlossary terms from Course 2, Module 1ЧтениеModule 1 challenge: Getting your Python onЗадание
02Managing Files with Python37 материалов

Reading and Writing Files

Programming with FilesВидеоReview: Reading filesЧтениеReading FilesВидеоReview: Iterating through filesЧтениеIterating through FilesВидеоReview: Writing filesЧтениеWriting FilesВидеоStudy guide: Reading and writing files ЧтениеPractice Notebook: Text FilesЛабораторная

File Paths

File pathsВидеоReview: How to write file paths in codeЧтениеHow to write file paths in codeВидеоTest your knowledge: Writing file pathsЗадание

Managing Files and Directories

Review: Working with filesЧтениеWorking with FilesВидеоReview: More file informationЧтениеMore File InformationВидеоReview: DirectoriesЧтениеDirectoriesВидеоStudy guide: Files and directories

Reading and Writing CSV Files

What is a CSV file?ВидеоReview: Reading CSV filesЧтениеReading CSV FilesВидеоReview: Generating CSVЧтениеGenerating CSVВидеоReview: Reading and writing CSV files with dictionariesЧтениеReading and writing CSV Files with Dictionaries

Module Review

What is Qwiklabs?ВидеоQwiklabs guidelines and troubleshooting stepsЧтениеQwiklabs assessment: Handling filesВнешний инструментExemplar: Handling FilesЧтениеGlossary terms from course 2, module 2ЧтениеModule 2 Wrap Up: Managing Files with PythonВидео
03Regular Expressions34 материалов

Regular Expressions

Intro to Module 3: Regular ExpressionsВидеоWhat are regular expressions?ВидеоReview: Why use regular expressions?ЧтениеWhy use regular expressions?ВидеоBasic Matching with grepВидеоTest your knowledge: Regular expressionsЗадание

Basic Regular Expressions

Review: Simple matching in PythonЧтениеSimple Matching in PythonВидеоReview: Wildcards and Character ClassesЧтениеWildcards and Character ClassesВидеоReview: Repetition QualifiersЧтениеRepetition QualifiersВидеоReview: Escaping CharactersЧтениеEscaping CharactersВидеоReview: Regular Expressions in ActionЧтениеRegular Expressions in ActionВидеоStudy guide: Regular expressionsЧтениеTest your knowledge: Basic regular expressionsЗадание

Advanced Regular Expressions

Review: Capturing GroupsЧтениеCapturing GroupsВидеоReview: More on repetition qualifiersЧтениеMore on Repetition QualifiersВидеоReview: Extracting a PID using regexes in PythonЧтениеExtracting a PID Using regexes in PythonВидео

Module Review

Module 3 Wrap Up: Regular ExpressionsВидеоGlossary terms from course 2, module 3ЧтениеQwiklabs assessment: Work with regular expressionsВнешний инструментExemplar: Work with regular expressionsЧтениеCoach dialogue: Automating with regular expressionsDIALOGUEModule 3 challenge: Work with Regular ExpressionsЗадание
04Managing Data and Processes30 материалов

Data Streams

Intro to Module 4: Managing Data and ProcessesВидеоReview: Reading data interactivelyЧтениеReading data interactivelyВидеоReview: Standard streamsЧтениеStandard StreamsВидеоReview: Environment variablesЧтениеEnvironment VariablesВидеоReview: Command-Line Arguments and Exit StatusЧтениеCommand-Line Arguments and Exit StatusВидеоMore About Input FunctionsЧтениеTest your knowledge: Data streamsЗадание

Python Subprocesses

Review: Running system commands in PythonЧтениеRunning System Commands in PythonВидеоReview: Obtaining the output of a system commandЧтениеObtaining the Output of a System CommandВидеоReview: Advanced subprocess managementЧтениеAdvanced Subprocess ManagementВидео

Processing Log Files

What are log files?ВидеоReview: Filtering log files with regular expressionsЧтениеFiltering Log Files with Regular ExpressionsВидеоReview: Making sense out of the dataЧтениеMaking Sense out of the DataВидеоTest your knowledge: Processing log filesЗадание

Module Review

Module 4 Wrap Up: Managing Data and ProcessesВидеоGlossary terms from course 2, module 4ЧтениеQwiklabs assessment: Work with log filesВнешний инструментExemplar: Work with log filesЧтениеModule 4 challenge: Working with log filesЗадание
05Testing in Python36 материалов

Simple Tests

Intro to Module 5: Testing in PythonВидеоWhat is testing?ВидеоManual Testing and Automated TestingВидеоTest your knowledge: Simple testsЗадание

Unit Tests

unittestЧтениеpytestЧтениеComparing unittest and pytestЧтениеReview: Unit testsЧтениеUnit TestsВидеоReview: Writing unit tests in pythonЧтениеWriting Unit Tests in PythonВидеоReview: Edge casesЧтениеEdge CasesВидеоReview: Additional test casesЧтениеAdditional Test CasesВидеоStudy guide: Unit testsЧтениеHelp with Jupyter NotebooksЧтениеPractice Notebook: Unit Tests and Edge CasesЛабораторная

Other Test Concepts

Black Box vs. White BoxВидеоOther Test TypesВидеоTest-Driven DevelopmentВидеоMore About TestsЧтениеTest your knowledge: Other test conceptsЗадание

Errors and Exceptions

Review: The Try-Except conceptЧтениеThe Try-Except ConstructВидеоReview: Raising errorsЧтениеRaising ErrorsВидеоReview: Testing for expected errorsЧтениеTesting for Expected ErrorsВидеоStudy guide: Handling errors

Module Review

Module 5 Wrap Up: Testing in PythonВидеоGlossary terms from course 2, module 5ЧтениеQwiklabs assessment: Implementing unit testingВнешний инструментExemplar: Implementing unit testingЧтениеModule 5 challenge: Implementing Unit TestingЗадание
06Bash Scripting35 материалов

Interacting with the Command Line Shell

Intro to Module 6: Bash ScriptingВидеоReview: Basic Linux commandsЧтениеBasic Linux CommandsВидеоReview: Redirecting streamsЧтениеRedirecting StreamsВидеоReview: Pipes and pipelinesЧтениеPipes and PipelinesВидеоReview: Signaling processesЧтениеSignaling ProcessesВидеоStudy guide: Basic Linux commandsЧтениеRedirections, Pipes, and SignalsЧтениеTest your knowledge: Interacting with the command lineЗадание

Bash Scripting

Review: Creating Bash scriptsЧтениеCreating Bash ScriptsВидеоReview: Using variables and globsЧтениеUsing Variables and GlobsВидеоReview: Conditional execution in BashЧтениеConditional Execution in BashВидеоBash Scripting Resources

Advanced Bash Concepts

Review: While loops in Bash scriptsЧтениеWhile Loops in Bash ScriptsВидеоReview: For loops in bash scriptsЧтениеFor Loops in Bash ScriptsВидеоReview: Advanced Command InteractionЧтениеAdvanced Command InteractionВидео

Module Review

Module 6 Wrap Up: Bash ScriptingВидеоGlossary terms from course 2, module 6ЧтениеQwiklabs assessment: Edit files using substringsВнешний инструментExemplar: Edit files using substringsЧтениеModule 6 challenge: Edit Files Using SubstringsЗаданиеIT skills in action readingЧтение
07Final Project11 материалов

Getting Ready for the Final Project

Intro to Your Final ProjectВидеоWriting a Script from the Ground UpВидеоProject Problem StatementВидеоHelp with Research and PlanningВидеоQwiklabs Assessment: Log analysis using regular expressionsВнешний инструментExemplar: Log analysis using regular expressionsЧтениеModule 7 challenge: Log Analysis Using Regular ExpressionsЗадание

Course Wrap-Up

Reflect and connect with your peersЧтениеCongratulations!ВидеоCourse 2 GlossaryЧтениеSneak Peek of the Next CourseВидео
Чтение
Test your knowledge: Managing files and directoriesЗадание
Видео
Study guide: .csv filesЧтение
Test your knowledge: Reading and writing CSV filesЗадание
Module 2 challenge: Handling FilesЗадание
Review: Splitting and ReplacingЧтение
Splitting and ReplacingВидео
Study guide: Advanced regular expressions Чтение
Test your knowledge: Advanced regular expressionsЗадание
Study guide: Python subprocessesЧтение
Test your knowledge: Python subprocessesЗадание
Чтение
Errors & Exceptions: Practice NotebookЛабораторная
Чтение
Test your knowledge: Bash scriptingЗадание
Review: Choosing between Bash and PythonЧтение
Choosing Between Bash and PythonВидео
Test your knowledge: Advanced bash conceptsЗадание