+ 1
What is definition declare and call and def plzz explain with one example
2 Answers
+ 3
FAREED 5C0 !
def is used to define function in python
def function_name():
print(10)
number = 10 //here we declare a variable number with value 10
Call means when you use function then you call function like this:
function_name() //this will print 10
+ 1
Hi! Please, read lesson 37.1 python for beginner course