Elephanta Caves, Mumbai, Maharashtra, India Elephanta Caves, Mumbai, Maharashtra, India Elephanta Caves, Mumbai, Maharashtra, India

Python

This is an inverted class, given in conjunction with similar classes at Xavier College (autonomous) in Ahmedabad, Gujarat, India, and Xavier Institute of Engineering in Mumbai, Maharashtra, India.

Syllabus

For the complete syllabus, click here.

Office Hours

or by appointment.

Contents

Day 1: Importance of Python, Getting Python

Core

We learn how to install and interact with Python. We start our forray into Python syntax with understanding simple arithmetic expressions involving numbers and strings. In the additional Extension section, we look at the representation of numbers to understand the role of arbitrary length integers in Python and numerical errors for floating point numbers in Python.

Extension

Exercises

Day 2: Types, Statements, Variables

Today we learn our first 'useful' program, a converter program.

Core

Exercises

Week 1 Resumen and Laboratory

First try out your prowess by solving the problems [click here for lab.pdf]. You can follow the presentations or you can access directly the solutions to compare.

Presentations

Day 3: Control flow: Alternative Statement

Core

  • Conditional Statements: __[If Statements.pdf]__ __[If Statements.mp4]__
  • If statements: __[If Statements.pdf]__ __[If Statements.mp4]__ __[if1.py]__
  • Choices: __[choices.pdf]__ __[choices.mp4]__ __[menu.py]__
  • If Else: __[choices.pdf]__ __[choices.mp4]__
  • Repetition: __[If Statements.pdf]__ __[If Statements.mp4]__
  • Extension: Algorithms

    Day 4: For Loops

    Finis