10152109Python Scripting
Course Information
Description
This is an introductory course focused on scripting in the Python programming language. Students will learn the fundamentals of creating Python scripts and using the Python language to automate administration of IT systems. No prior programming or scripting experience is necessary to enroll in this course.
Total Credits
3
Course Competencies
-
Utilize Python environmentsAssessment StrategiesSkill Demonstration, Written Product and/or ProjectCriteriaDetermine the version of Python installedAccess the Interactive Python shellCreate basic python scripts and execute themInstall Python packages using the Python Package Manager
-
Manage versions with GitAssessment StrategiesSkill Demonstration, Written Product and/or ProjectCriteriaSetup local git repositorySync repository with GitHubManage versions of weekly code changesCreate GitHub issues for communication
-
Create and utilize Python objects and variablesAssessment StrategiesSkill Demonstration, Written Product and/or ProjectCriteriaCreate variables in PythonDetermine the type of objects using the type() functionFind information about objects attributes (data) and functions (actions)
-
Interact with filesAssessment StrategiesSkill Demonstration, Written Product and/or ProjectCriteriaOpen and Close filesRead and Write from/to files on your operating systemLoop through files to get detailed informationUse delimiters such as commas (,) to read in formatted data
-
Use Boolean Logic to control the flow through a Python scriptAssessment StrategiesSkill Demonstration, Written Product and/or ProjectCriteriaUse comparison and other operators to make up Boolean expressionsDemonstrate conditional logic to make choices about what to do in a scriptUtilize loops when appropriate such as a repetitive task
-
Create functions in PythonAssessment StrategiesSkill Demonstration, Written Product and/or ProjectCriteriaDemonstrate the scope of variables as you break code into functionsSegment code into re-usable functionsPass arguments into a functionReturn data from a functionUse a main function to distinguish the behavior of a script (interactive versus imported)
-
Run processes and access resultsAssessment StrategiesSkill Demonstration, Written Product and/or ProjectCriteriaRun an operating system command in a Python ScriptLoop through the results and data returned from the commandLog results in a file
-
Create arguments and help for running scriptsAssessment StrategiesSkill Demonstration, Written Product and/or ProjectCriteriaCreate arguments for your scriptProvide default values for arguments and/or make them requiredProvide help information to users of your scriptUse arguments in a script to get input from the user
-
Communicate with Web pages and Web servicesAssessment StrategiesSkill Demonstration, Written Product and/or ProjectCriteriaAccess a webpage in PythonPass in parameters and information to web pages and web servicesInspect an HTML response for attributes and informationConvert web service responses to dictionaries in PythonSerialize and de-serialize data structures using the JSON Format