Python Programming Essentials
Course Description
This course provides a comprehensive introduction to Python programming — from syntax, functions, and data structures to automation, error handling, and virtual environments. Students will build projects that prepare them for real-world applications and further specialization in data analysis or AI.
Course Outcome :
-
Learn the syntax and structure of Python programming.
-
Write modular programs using functions, loops, and conditionals./p>
-
Work with files, strings, lists, dictionaries, and sets.
-
Understand and use regular expressions, exceptions, and encoding.
-
Build and manage virtual environments for project isolation.
-
Develop real-world automation and data processing scripts.
-
Prepare for advanced Python certifications or roles in data analysis and automation.
Course Curriculum
This course provides a comprehensive introduction to Python programming — from syntax, functions, and data structures to automation, error handling, and virtual environments. Students will build projects that prepare them for real-world applications and further specialization in data analysis or AI.
- Installing Python and IDEs (VS Code / PyCharm)
- Understanding syntax, indentation, and variables
- Using print(), comments, and input()
- Python scripts and modules
- Lab: Write your first “Hello, World” and calculator script
- Defining and calling functions
- Parameters, arguments, and return values
- Global and local scopes
- Creating and importing modules
- Lab: Build a temperature converter module
- Numbers, strings, and booleans
- Arithmetic and assignment operators
- Using the math and random libraries
- Lab: Pizza calculator and random password generator
- String indexing, slicing, and concatenation
- Common string methods
- String formatting and f-strings
- Lab: Word frequency counter and text formatter
- Lists, tuples, ranges, sets, and dictionaries
- Nested collections and unpacking
- Using len(), zip(), and comprehensions
- Lab: Rock-Paper-Scissors game and student grade tracker
- Conditional statements (if, elif, else)
- Loops (for, while, break, continue)
- Generators and list comprehensions
- Lab: Dice rolling simulator and guessing game
- Reading and writing text files
- Managing directories with os and os.path
- Lab: Create a log file reader and file renamer
- Understanding exceptions
- Using try, except, finally
- Regex patterns and syntax
- Searching and replacing with re module
- Lab: Email validator and log file parser
- Creating and activating virtual environments
- Installing external packages (pip)
- Version control for projects
- Lab: Isolate a project and install libraries
- Working with date and time
- File automation tasks
- Encoding and Unicode handling
- Writing command-line scripts
- Lab: Automate report generation and directory cleanup
- Using yum and dnf package managers
- Installing and updating software packages
- Configuring repositories and verifying dependencies
- Lab: Create a local software repository
- Mounting and unmounting file systems
- Working with partitions and storage devices
- File system troubleshooting and repair (fsck, df, du)
- Lab: Create and mount additional storage
- Viewing system logs (journalctl, dmesg)
- Troubleshooting boot and runtime issues
- Using cockpit for system monitoring
- Getting Red Hat support and system insights
- Practice labs combining user, network, and file management
- Common RHCSA exam scenarios
- Instructor-guided review and Q&A