You can Run the Python Code below. (First Delete all existing code then type your own code)
[withcode id=”3C” mode=”embed” width=”400px” height=”600px”]
Answers the following
- What are actual and formal parameters in python function?
- What are fruitful and non-fruitful functions in python ?
- What are void and non-void functions in python ?
- Function in python returns multiple values or return more than one value . True /False.
- Write a function cube takes parameter c and returns cube of c. In calling pass x as parameter and value of x is entered by user using input function.
- Write above function without return type (void type) also.
- See the code given below and answers the three questions asked in the last
def number(x):
x=x+5
print(x)
def digit(y):
y=y+5.5
return y
a=20
b=10
number(b)
print(digit(a))
number(a)
print(digit(b))
- Actual parameters and formal parameters in above code
- Identify the non-void (fruitful) function and void (non-fruitful) functions from above code
- What is the output after running above python code.
Watch My videos(full playlist of functions part wise ) for more understanding click below.
1 2
Nice sir your are awesome you give your best to teach us during this lockdown
thanks for appreciation …dear
Nice Sir, you are the Best teacher of Computer science…..thanks for teach us…..
Nice Sir, you are the Best teacher of Computer science…..thanks for teach us…..