Function in Python

A function is a reusable code for specific action. Here we are defining two different function. First one is to say hello to the user after asking their name with their age.Second function is to calculate square of a number. #defining a function #function_1 def say_hi(name, age): print("Hello" + name + ", you are " … Continue reading Function in Python