Syllabus - Computer Workshop: Introduction to Python (IS306)


CSE-Data Science

Computer Workshop: Introduction to Python (IS306)

III-Semester

Module1: Introduction to python language, Basic syntax, Literal Constants, Numbers, Variable and Basic data types,String, Escape Sequences, Operators and Expressions, Evaluation Order, Indentation, Input, Output, Functions, Comments.

Module2: Data Structure: List, Tuples, Dictionary, DataFrame and Sets, constructing, indexing, slicing and content manipulation.

Module3: Control Flow:Conditional Statements - If, If-else, Nested If-else. Iterative Statement - For, While, Nested Loops. Control statements - Break, Continue, Pass.

Module4: Object oriented programming:Class and Object, Attributes, Methods, Scopes and Namespaces, Inheritance, Overloading, Overriding, Data hiding,Exception: Exception Handling, Except clause, Try finally clause, User Defined Exceptions.

Module5: Modules and Packages: Standard Libraries: File I/0, Sys, logging, Regular expression, Date and Time, Network programming, multi-processing and multi-threading.

Practicals

  • To write a Python program to find GCD of two numbers.

  • To write a Python Program to find the square root of a number by Newton’s Method.

  • To write a Python program to find the exponentiation of a number.

  • To write a Python Program to find the maximum from a list of numbers.

  • To write a Python Program to perform Linear Search

  • To write a Python Program to perform binary search.

  • To write a Python Program to perform selection sort.

  • To write a Python Program to perform insertion sort.

  • To write a Python Program to perform Merge sort.

  • To write a Python program to find first n prime numbers.

  • To write a Python program to multiply matrices.

  • To write a Python program for command line arguments.

  • To write a Python program to find the most frequent words in a text read from a file.

  • To write a Python program to simulate elliptical orbits in Pygame.

  • To write a Python program to bouncing ball in Pygame.

Reference Books

  • Timothy A. Budd: Exploring python, McGraw-Hill Education.

  • R.NageshwarRao ,”Python Programming” ,Wiley India

  • Think Python: Allen B. Downey, O'Reilly Media, Inc.