1 Python 1 lab (2hrs) What’s new in Python LMS Environmental setup Installation of Python 3.x Installation of Pycharm Variable Types Standard data Types Numbers String List Tuple Dictionary Set Map Assignment: 3 Programs LMS Assessment : 20 MCQ 2 Operators supported by Python: 1-lab (2 hrs) LMS Arithmetic Operators Comparison (Relational) Operators Assignment Operators Logical Operators Bitwise Operators Membership Operators Identity Operators
Assignment: 3 Programs LMS
Assessment : 20 MCQ 3 Number 1-lab(2 hrs) Int LMS Float Complex Number type conversion Mathematical functions Abs(), log() , ceil(), exp(), floor(), pow(), sqrt() Random number function: Choice() Randomrange() Random() Seed() Shuffle() Uniform() Assignment: 3 Programs LMS Assessment : 20 MCQ 4 Strings 1-lab(2 hrs) Accessing values in string LMS Updating strings Escape characters String special operators String formatting operator Triple quotes Unicode string Assignment: 3 Programs LMS Assessment : 20 MCQ 5 Dictionary 1-lab(2 hrs) Accessing values in Dictionary LMS Updating Dictionary Deleting Dictionary elements Properties of Dictionary keys Built in Dictionary Functions and Methds Assignment: 3 Programs LMS Assessment : 20 MCQ 6 Date and Time 1-lab(2 hrs) Tick LMS Time Tuple Getting current time Getting formatted time Getting formatted Line Getting Calender of the months Time Module Calender Module Assignment: 3 Programs LMS Assessment : 20 MCQ 7 Function 1 lab(2hrs) Defining Function LMS Calling function Pass by reference vs value Function Arguments
Required arguments Keyword arguments
Default arguments
Variable-length arguments
Recursion
Assignment: 3 Programs LMS
Assessment : 20 MCQ 8 Module 1 lab( 2 hrs) Import statement LMS The from-----import statement The from import* statement Exceuting modules as scripts Locating Module Namespace and scoping Dir() , getcwd(), setcwd() Assignment: 3 Programs LMS Assessment : 20 MCQ 9 File I/O 2 labs ( 4hrs) Opening and closing files LMS Open function Mode of opening a file The file Object attributes File.closed File.mode File.name Close() method
Reading and writing a file
Write() method Read() method File positions Seek() , tell() Renaming and deleting files Remove() method Mkdir() Chdir() Assignment: 3 Programs LMS Assessment : 20 MCQ 10 Exception Handling 1 labs(2hrs) Standard exceptions LMS What is an exception? Handling an exception The Except clause with no exception The except clause with multiple exception The Try-Finally clause Argument of an Exception Raising an Exception