Using Python to Interact with the Operating System Review: Worth It?

Affiliate links: we may earn a small commission if you enroll, at no extra cost to you.

Every morning you rename the same files, dig through the same logs, and copy the same numbers into a report, all by hand. Google's Using Python to Interact with the Operating System teaches you to script that work away. Watch the 3-minute video review above, or read on for the module-by-module details.

Our 2¢

If you're tired of doing the same computer tasks by hand, this course teaches you to automate them with Python and Bash.

The catch: The course works mostly in Linux and Bash, and one reviewer wished it covered Windows commands too. Another called it a little extensive, though rewarding to finish, so pace yourself across the three weeks.

Using Python to Interact with the Operating System

$49

or included in Coursera Plus from $59/month

  • PROVIDERGoogle
  • CERTIFICATEGoogle IT Automation with Python
  • RATING4.7 (6,600+ reviews)
  • ENROLLED309,000+
  • LEVELBeginner, no experience needed
  • TIME~3 weeks at 10 h/week
  • MODULES7 (24 assignments)
  • US PRICE$49

What you'll learn

You learn to set up a developer environment, read and write files, use regular expressions, run subprocesses and process log files. The course also covers automatic testing and Bash scripting, and when to choose Bash or Python. It's part of the Google IT Automation with Python Professional Certificate, and enrolling here enrolls you in the certificate too. More than 309,000 people have enrolled, and the graded labs run in Qwiklabs.

Module by module

  • MODULE 1Getting your Python onSetting up your environment, interpreted and compiled languages, the benefits of automation, and Qwiklabs for graded work (about 3 hours).
  • MODULE 2Managing files with PythonReading and writing files, moving through directories, and working with CSV files (about 6 hours).
  • MODULE 3Regular expressionsWildcards, repetition qualifiers and capturing groups for searching and processing text (about 5 hours).
  • MODULE 4Managing data and processesStandard streams, environment variables, command line arguments, subprocesses and log files (about 5 hours).
  • MODULE 5Testing in PythonThe biggest module: unit tests, test-driven development, and errors and exceptions (about 7 hours).
  • MODULE 6Bash scriptingBasic Linux commands, redirection, Bash scripts with variables and globs, and when to use Bash or Python (about 5 hours).
  • MODULE 7Final projectWrite a script that scans log files for a specific error, from the problem statement to the code (about 3 hours).

The catch

The course works mostly in Linux and Bash, and one reviewer wished it covered Windows commands too. Another called it a little extensive, though rewarding to finish, so pace yourself across the three weeks.

Who it's for

  • IT support staff moving into automation
  • New developers
  • System administrators
  • Anyone who wants a script to handle repetitive computer tasks

Price vs Coursera Plus

Using Python to Interact with the Operating System costs $49 in the US, and Coursera shows the exact options for your country when you click enroll. Coursera Plus is $59 a month, about $10 more, and Coursera's three-week estimate fits inside one month. Plus also opens more than 10,000 other courses, projects and certificate programs. The yearly plan is $399, roughly $33 a month. Monthly starts with a 7-day free trial, and yearly has a 14-day refund window.

FAQ

Is Using Python to Interact with the Operating System included in Coursera Plus?

Yes. The course page says it's included with Coursera Plus, which costs $59 a month or $399 a year.

How long does Using Python to Interact with the Operating System take?

Coursera estimates about three weeks at ten hours a week, across seven modules and 24 assignments. Testing is the longest module at about seven hours.

Does Using Python to Interact with the Operating System cover Windows?

It works mostly in Linux and Bash, and one reviewer wished it covered commands for Windows and other platforms too. The page lists it as beginner level, with no prior experience required.