Built-in and user defined functions in Python
# Built-in functions in Python [importing math package] import math x=int(input(“Enter any number:”)) print(“Square root of {0} is {1}”.format(x,math.sqrt(x))) print(“Square of {0} is {1}”.format(x, x*x)) print(“Cube of {0} is {1}”.format(x, x*x*x)) OutPut: Enter any number:5 Square root of 5 is 2.23606797749979 Square of 5 is 25 Cube of 5 is 125 User-defined functions def …