PPS Unit 3: Functions and Strings (2024 Pattern) | SPPU Notes

Syllabus

Functions:

  • Need for functions
  • Function definition
  • Function call
  • Variable scope and lifetime
  • Return statement
  • Lambda (anonymous) functions
  • Documentation strings
  • Good programming practices

Modules and Packages:

  • Introduction to modules
  • Introduction to packages in Python
  • Introduction to standard library modules

Strings and Operations:

  • Concatenation
  • Appending
  • Multiplication
  • String slicing
  • String immutability
  • String formatting operator
  • Built-in string methods and functions
  • Slice operation
  • ord() and chr() functions
  • in and not in operators
  • Comparing strings
  • Iterating strings
  • String module

Download Notes

Download U4 Notes