Collection of Python function examples and practice problems and Practice programs on Python functions with examples like prime check, Fibonacci, map/filter/reduce, and string operations.
This repository contains my assignment on Functions in Python.
It includes examples and practice problems covering different function concepts.
- Defining and calling functions
- Function arguments and return values
- Prime number check (1 to 200)
- Iterators and Generators
- Fibonacci sequence iterator
- Generator for powers of 2
- File reading with generators
- Lambda functions
- Using
map()
,filter()
, andreduce()
- String operations (reverse, remove vowels, etc.)
- Temperature conversion (Celsius β Fahrenheit)
Attached the zip file folder in which the pdf is present and in that pdf all the needed links are given .