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: 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 mind is ever going to help you.Programming is one of such a similar endeavor. As we move along, it is highly recommended that
Chapter 2: Functions, Namespace & Scope
In this chapter, we will learn more about functions in Python. We have already encountered some functions earlier in the last chapter. Can you list some of the functions that we have encountered? We have already encountered a couple of built-in functions such print(), len(), round() and, ord()…
Chapter 3: Standard Type Hierarchy
Figure 1: Standard Type Hierarchy for Python In earlier chapters, we have encountered different types of Python objects. Can you name some of the types that we have already encountered? Strings, lists, tuples, integers, floats, and dictionary are some of the types that we have already encounter…
Chapter 4: 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 until there are no statements to execute or it encounter an error while executing an instruction. We can test this out by writing a simple python script. print(“Th…
Chapter 5: 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 how we can loop over a list using the while loop. >>> guests = [‘Luffy’, ‘Zorro’, ‘Sanji’ ] >>> i = 0
Chapter 6: Files, IO & Modules
A useful program usually needs to interact with the outside world. Such interaction can involve receiving data or sending data outside the program. Data received from outside is called input data while the data the program sends outside is called output data. Together input and output operations are…
Chapter 7: 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 can think of a program that needs to be updated to include

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. …