Advertisements
Advertisements
Question
What is a function?
Advertisements
Solution
Functions are named blocks of code that are designed to do a specific job. If you need to perform that task multiple times throughout your program, you just call the function dedicated to handling that task.
APPEARS IN
RELATED QUESTIONS
A named block of code that is designed to do one specific job is called ______
A Function which calls itself is called as ______
Pick the correct one to execute the given statement successfully.
if ______ : print(x, " is a leap year")
Write the different types of functions.
Differentiate ceil() and floor() function?
Write a Python code to check whether a given year is a leap year or not.
Explain the following built-in function.
chr()
Explain the following built-in function.
round()
Explain the following built-in function.
type()
Explain the following built-in function.
pow()
