Programming
Python for Beginners and Automation
Learn Python fundamentals and use them to automate practical computer tasks such as files, text, spreadsheets, web data, and repeatable scripts.
72 Lessons
134 Quizzes
2264 Minutes
Skills you'll build
Recognize tasks suited to automationChoose a safe first automation stepVerify a Python 3 installationChoose a beginner-friendly coding toolUse the interactive interpreterInterpret simple Python outputUse minimal terminal navigationRun a saved Python fileTroubleshoot script launch contextUse print and input in a tiny scriptTrace top-to-bottom script flowApply safe automation habitsEvaluate basic Python expressionsRecognize basic value typesTrace variable assignmentUse readable names and commentsCollect and convert console inputFormat console output with f-stringsBuild boolean testsInterpret truth valuesPredict conditional branchesDesign simple decision rulesUse range-based for loopsTrace loop stateControl while loopsChoose a loop patternSolve small loop-based problemsDebug foundation-level scriptsSelect an appropriate data containerAccess sequence elements with indexes and slicesUpdate lists with common methodsIterate through collectionsUse dictionary lookups and updatesNavigate nested data structuresSummarize a collection of recordsApply tuples and sets in simple scriptsDefine functions with parameters and return valuesTrace function call flowReason about function scopeDocument small functions with docstringsImport and use standard-library modulesSplit beginner scripts into reusable modulesClassify common Python errorsRead traceback cluesInspect state with print debuggingNarrow the source of a bugHandle expected exceptionsPredict exception control flowValidate user inputDesign a reprompt loopRaise meaningful errorsUse assertions for invariantsWrite simple function testsChoose useful test casesInterpret test failuresOpen text files safelyRead text file contentsWrite text file contentsClean and transform stringsInterpret basic regular expressionsChoose regex or string methodsExtract data with regular expressionsRead and write CSV filesRead and write JSON filesBuild a simple data conversion pipelineBuild paths with pathlibResolve relative and absolute pathsMatch files with glob patternsTraverse folder treesInspect file metadataFilter files by propertiesCreate directories safelyUse temporary workspacesDesign dry-run file actionsPrevent file operation data lossChoose copy, move, rename, or delete operationsPerform destructive actions safelyCreate and extract archivesCompose a file-organization workflowReview filesystem script safetyExplain environment isolationChoose venv commandsVerify the active environmentMap virtual environment structureUse pip package commandsInterpret package sourcesRead package documentationManage requirements filesTroubleshoot package environmentsChoose an automation interfaceHandle HTTP responsesSave web downloads safelyApply responsible scraping rulesExtract HTML dataRecognize scraping fragilityChoose form interaction patternsProtect automation secretsAutomate Excel workbooksPreserve spreadsheet meaningUse cloud sheet accessChoose document automation patternsSend script notificationsTriage web-office failuresIdentify repeatable script boundariesDesign command-line argumentsInterpret argparse behaviorSeparate configuration from secretsChoose settings precedenceApply logging levelsDesign useful log outputHandle script dates and timesRun subprocesses safelyInterpret subprocess resultsChoose a scheduling optionAvoid platform assumptionsDocument script usageOrganize project statePlan safe automation projectsIntegrate a repeatable workflow
Clarifyst