About Me

header ads

Introduction to Python Programming (BPLCK105B/205B)


Introduction to Python Programming

Course Code: BPLCK105B/205B 
CIE Marks:50
Course Type (Theory/Practical/Integrated )
Integrated SEE Marks:50
Total Marks:100
Teaching Hours/Week (L:T:P: S) 2:0:2:0 
Exam Hours:03
Total Hours of Pedagogy 40 hours 
Credits:03


Module-1 

Python Basics: Entering Expressions into the Interactive Shell, The Integer, Floating-Point, and String Data Types, String Concatenation and Replication, Storing Values in Variables, Your First Program, Dissecting Your Program, Flow control: Boolean Values, Comparison Operators, Boolean Operators,Mixing Boolean and Comparison Operators, Elements of Flow Control, Program Execution, Flow Control Statements, Importing Modules,Ending a Program Early with sys.exit(), Functions: def Statements with Parameters, Return Values and return Statements,The None Value, Keyword Arguments and print(), Local and Global Scope, The global Statement, Exception Handling, A Short Program: Guess the Number Textbook 1: Chapters 1 – 3


Module-2 

Lists: The List Data Type, Working with Lists, Augmented Assignment Operators, Methods, Example Program: Magic 8 Ball with a List, List-like Types: Strings and Tuples, References, Dictionaries and Structuring Data: The Dictionary Data Type, Pretty Printing, Using Data Structures to Model Real-World Things, Textbook 1: Chapters 4 – 5


Module-3 

Manipulating Strings: Working with Strings, Useful String Methods, Project: Password Locker,

Project: Adding Bullets to Wiki Markup Reading and Writing Files: Files and File Paths, The os.path Module, The File Reading/Writing Process, Saving Variables with the shelve Module,Saving Variables with the print.format() Function, Project: Generating Random Quiz Files, Project: Multiclipboard, Textbook 1: Chapters 6 , 8


Module-4 

Organizing Files: The shutil Module, Walking a Directory Tree, Compressing Files with the zipfile Module, Project: Renaming Files with American-Style Dates to European-Style Dates,Project: Backing Up a Folder into a ZIP File,

Debugging: Raising Exceptions, Getting the Traceback as a String, Assertions, Logging, IDLE‟s Debugger. Textbook 1: Chapters 9-10


Module-5 

Classes and objects: Programmer-defined types, Attributes, Rectangles, Instances as return values, Objects are mutable, Copying,

Classes and functions: Time, Pure functions, Modifiers, Prototyping versus planning,

Classes and methods: Object-oriented features, Printing objects, Another example, A more complicated example,Theinit method, The __str__ method, Operator overloading, Type-based dispatch, Polymorphism, Interface and implementation, Textbook 2: Chapters 15 – 17



Suggested Learning Resources:

Text Books

1. Al Sweigart,“Automate the Boring Stuff with Python”,1stEdition, No Starch Press, 2015.(Available under CC-BY-NC-SA license at https://automatetheboringstuff.com/) (Chapters 1 to 18, except 12) for lambda functions use this link: https://www.learnbyexample.org/python-lambda-function/

2. Allen B. Downey, “Think Python: How to Think Like a Computer Scientist”, 2 nd Edition, Green Tea Press, 2015. (Available under CC-BY-NC license at http://greenteapress.com/thinkpython2/thinkpython2.pdf (Chapters 13, 15, 16, 17, 18) (Download pdf/html files from the above link)


Web links and Video Lectures (e-Resources):

● https://www.learnbyexample.org/python/

● https://www.learnpython.org/

● https://pythontutor.com/visualize.html#mode=edit


Post a Comment

0 Comments