Study Notes

Study Notes These bite-sized notes summarize various learning outcomes covered in Active Learning Modules in the 2Learn courses. Past Year Problems related to these LOs are covered in related Problem Solving Modules. (Refer to Pedagogy for more details on course...

Exception Handling

Exception Handling Contents Define and classify Errors and Exceptions. 1 Describe types of Errors and Exceptions. 6 Describe try and except Block. 10 Write a program to demonstrate try and except Blocks. 14 Describe Multiple except Blocks for a Single try Block. 18...

File Handling

File Handling Contents Define File and explain File Paths. 1 Classify Files and explain Text Files and Binary Files. 4 Describe File open() Function and explain various File Access Modes. 8 Describe File Object Attributes and File close() Method. 11 Describe write(),...

Strings

Strings Contents Describe String. 1 Demonstrate String Traversal using Integer as an Index and expression as an Index with the help of Python Programs. 3 Demonstrate Strings Concatenation with the help of a Python Program.. 6 Demonstrate Appending a String with the...

Functions and Modules

Functions and Modules Contents Recall Need of the Function. 1 Define Function. 5 Describe Function Call and Function Parameter 8 Describe various types of Arguments. 11 Recall Scope and Lifetime of a Variable. 15 Differentiate between Local Variable and Global...

Decision Control Structures

Decision Control Structures Contents Recall types of Decision Control Statements. 1 Define and apply if Statement 4 Define and apply if-else Statement 7 Define and apply Nested if Statement 11 Define and apply if-elif-else Statement 15 Define while Loop Structure. 19...