Introduction To Python | Function, Recursion, Type conversion and Coercion, Lambda Function, Strings
Function is a group of Inter-related statements that perform a specific task. Functions help as to break large programs into smaller blocks or modular chucks.
a) Built in functions - Functions that are built within Python by default.
**b) User defined functions **- Functions that are defined by the users.
Mathematical Function
#Example 2.1
import math #import math module
math.pow(var1,var2)
math.sqrt(var1)
math.sin(var1)
math.cos(var1)
math.log10(var1)
... etc
String Function
#Example 2.2
len(),lower(),upper(),find(),count(),replace(),strip()... etc
#python #beginners-tutorial #python-complete-tutorial #python-programming