Python-1 is an introductory course towards taking the first steps in the Python Programming Language. This course is designed for learners without any prior programming experience. Those who have some programming experience under their belt and want to dig deeper into Python will also find this course valuable.

This course forms the base for other subsequent courses on Primer in Computer Science and other fields.

Estimated Time to Complete: 10-12 hours

Chapters

Chapter 1: Fundamentals of Computing
Python is a programming language used to write programs or set of instructionsfor a computer. Before jumping directly into learning how to program a computer,it is useful to clarify what a computer is, how it works, and how we caninstruct it to perform a specific task. A good starting point abou…
Chapter 2: Python Programming Language
Famous martial artist and actor Bruce Lee once said > If you want to learn to swim, jump into the water. On dry land, no frame of mindis ever going to help you.Programming is one of such a similar endeavor. As we move along, it is highlyrecommended that you execute the code and tinker with the p…
Chapter 3: Functions, Namespace & Scope
In this chapter, we will learn more about functions in Python. We have alreadyencountered some functions earlier in the last chapter. Can you list some of the functions that we have encountered?We have alreadyencountered a couple of built-in functions such print(), len(), round() and, ord(). Let…
Chapter 4: Standard Type Hierarchy
Figure 1: Standard Type Hierarchy for Python In earlier chapters, we haveencountered different types of Python objects. Can you name some of the typesthat we have already encountered?Strings, lists, tuples, integers, floats, and dictionary are some of the typesthat we have already encountered. I…
Chapter 5: Program Structure & Control Flow
In Python, we structure programs as a sequence of statements.When you execute a Python program, the interpreter executes each statement untilthere are no statements to execute or it encounter an error while executing aninstruction. We can test this out by writing a simple python script. print(“T…
Chapter 6: Iterators, Generators & Comprehensions
In Python, we can loop over sequences such as lists, tuples using for loop, or while loop using index position. For instance, the code listing below shows howwe can loop over a list using the while loop. >>> guests = [‘Luffy’, ‘Zorro’, ‘Sanji’ ]>>> i = 0>>> while i < len(guests):... print(…
Chapter 7: Files, IO & Modules
A useful program usually needs to interact with the outside world. Suchinteraction can involve receiving data or sending data outside the program. Data received from outside is called input data while the data the program sendsoutside is called output data. Together input and output operations ar…
Chapter 8: Zen of Python
A computer program is read more often than it’s written. This is a pearl of well-established wisdom in the programming community. Can you think of any reasons why it is so?To understand why it is so, we canthink of a program that needs to be updated to include additionalfunctionalities. To write…

Pre-requisites

The only course pre-requisite is access to Python 3 Development Environment. We have written a guide for you to get started.

Setting up Python Development Environment
Installing Python on your machineThere are different steps for installing Python depending on your operatingsystem. You can use the following guide to install Python. Python 3 Installation & Setup Guide – Real PythonThe first step to gettingstarted with Python is to install it on your machine. …