

Programming with Python
Objective
- Understand how Python works and what it’s good for.
- Understand Python’s place in the world of programming languages.
- Work with and manipulate strings in Python.
- Perform math operations with Python.
- Work with Python sequences: lists, arrays, dictionaries, and sets.
- Collect user input and output results.
- Perform flow control processing in Python.
- Write to and read from files using Python.
- Write functions in Python.
- Work with dates and times in Python.
Course Outline
Python Basics
- Running Python
- Hello, World!
- Literals
- Python Comments
- Variables
- WRiting a Python Module
- print() Function
- Collecting User Input
- Getting Help
Functions and Modules
This module explains how to work with functions and modules.
- Defining Functions
- Variable Scope
- Global Variables
- Function Parameters
- Returning Values
- Importing Modules
Math
Python includes some built-in math functions and some additional built-in libraries that provide extended math (and related) functionality. In this lesson, we’ll cover the built-in functions and the math and random libraries.
- Arithmetic Operators
- Assignment Operators
- Built-in Math Functions
- The math Module
- The randon Module
Python Strings
Python includes some built-in math functions and some additional built-in libraries that provide extended math (and related) functionality. In this lesson, we’ll cover the built-in functions and the math and random libraries.
- Quotation Marks and Special Characters
- String Indexing
- Slicing Strings
- Concatentaion and Repetition
- Common String Methods
- String Formatting
- Formatted String Literals (f-strings)
- Built-in String Functions
Iterables: Sequences, Dictionaries, and Sets
Iterables are objects that can return their members one at a time. The iterables we will cover in this lesson are lists, tuples, ranges, dictionaries, and sets.
- Definitions
- Sequences
- Unpacking Sequences
- Dictionaries
- The len() Function
- Sets
- *args and **kwargs
Flow Control
Generally, a program flows line by line in sequential order. We have seen already that we can change this flow by calling functions. The flow can also be changed using conditional statements and loops.
- Conditional Statements
- Loops in Python
- break and continue
- The enumerate() Function
- Generators
- List Comprehensions
Virtual Environments
A virtual environment is a container for a Python development platform on your computer. Packages can be installed in the virtual environment that are separate from your standard, or non-virtual environment.
- Virtual Environment
- Understand what a virtual environment is.
- Create a virtual environment.
- Activate and deactivate a virtual environment.
- Delete a virtual environment.
Regular Expressions
Regular expressions are used to do pattern matching in many programming languages, including, Java, PHP, JavaScript, C, C++, and Perl. We will provide a brief introduction to regular expressions and then we’ll show you how to work with them in Python.
- Regular Expression Syntax
- Python’s Handling of Regular Expressions
File Processing
Python allows you to access and modify files and directories on the operating system.
- Opening Files
- The os and os.path Modules
Python Dates and Times
This module explains how to work with Python dates and times.
- Understanding Time
- The time Module
- The datetime Module
Running Python Scripts from the Command Line
This module explains how to run Python scripts form the command line.
- sys.arg
- sys.path
- Run Python scripts from the command line.
Python Libraries
- NumPy – arrays
- Operations on arrays
- Indexing slicing and iterating
- Pandas – data structures & index operations
- Reading and Writing data from Excel/CSV formats into Pandas
- Matplotlib library
Fee: Rs 7,499 + 18% GST
100% subsidized cost for Naveen Jindal Foundation registered students
100% subsidized cost for Naveen Jindal Foundation registered students


