Programming in Python

This is an online textbook on Python and is a companion resource to the course Programming in Python offered as a part of the Online Degree Program, IIT-Madras. For more details about the course, check out our website.

Note to students: This book is meant to be used as a reference. You may find content that has not been covered in the video lectures. Likewise, there may be some content that is present in the lectures which is not covered here. Additional content appearing in this book will not be considered for grading. In summary, please refer to chapters that you feel are relevant for the course. But you are under no obligation to read the entire book cover to cover. Interested students are always welcome to read the entire thing!

 

Chapter-0: Warm-up

Lesson-0

 

Chapter-1: Introduction to Python

Lesson-1.1

Lesson-1.2

Lesson-1.3

Lesson-1.4

Lesson-1.5

Lesson-1.6

 

Chapter-2: Conditionals

Lesson-2.1

Lesson-2.2

Lesson-2.3

Lesson-2.4

 

Chapter-3: Loops

Lesson-3.1

Lesson-3.2

Lesson-3.3

Lesson-3.4

Lesson-3.5

System libraries

Lesson-3.6

Mathematics and Programming

 

Chapter-4: Functions

Lesson-4.1

Lesson-4.2

Lesson-4.3

Lesson-4.4

 

Chapter-5: Lists and Tuples

Lesson-5.1

Lesson-5.2

Lesson-5.3

Lesson-5.4

Lesson-5.5

Lesson-5.6

 

Chapter-6: Dictionaries and Sets

Lesson-6.1

Lesson-6.2

Lesson-6.3

Lesson-6.4

Lesson-6.5

 

Chapter-7: File Handling

Lesson-7.1

Lesson-7.2

Lesson-7.3

Lesson-7.4

Lesson-7.5

 

Chapter-8: Object Oriented Programming

Lesson-8.1

Lesson-8.2

Lesson-8.3

Lesson-8.4