1
1
Programming
Tamal Das
Department of Computer Science and Engineering
IIT Dharwad
Food for thought
• Why a programming course in a management program?
• What do you expect to learn from this course?
w = 5
print(w, x)
print(w + x)
print(x + w)
Nov 30, 2024 Introduction to Programming 10
Python Programming Development
Environments
• Command line • Spyder
• IDLE • Notepad
• Eclipse (with PyDev) • PyCharm
• Eric • Online editors
• PyScripter • http://pythonfiddle.com/
• Google Colab
• Bluefish • w3schools
• Geany • …
Using Comments
• Why? Programs outlive the programmer
• Begins with #
• Meant for humans, not computers
Using Blank Lines
• Meant for humans, not computers
• Visual grouping of code
Printing the String
Waiting for the User
Textbook Software
• Title • Python 3
• Python Programming for the
Absolute Beginner
• Author
• Michael Dawson
• Publisher
• CENAGE
• ISBN
• 9789386668004
Nov 30, 2024 Introduction to Programming 18
Session Plan
Case /
Module Session Exercise /
No. No. Topic and Sub-topics Readings Assignment
Solving Problems using Computers Algorithms
Chapter 1 (Textbook)
1 Object-Oriented Programming vs. Sequential Programming Lecture notes
Basic Python Programming by Examples
Variables and Data Types
Arithmetic Operators and Expressions Chapter 2 (Textbook)
2
1 Strings Lecture notes
Getting User Input and writing output
Control statements and program development
Boolean Expressions Chapter 3 (Textbook)
3-4
Simple Decisions Lecture notes
Chained & Nested Decisions
5 Loops Chapter 3 (Textbook)
Lecture notes
2 6-7 Functions (void and return) Chapter 6 (Textbook)
8 Sequences: Lists Lecture notes
9-10 Single and Multidimensional Arrays and Use Cases Lecture notes
Mid-term