Write statement to call the function. def Add(): X = 10 + 20 print(X) _________ #statement to call the above function Immersive Reader
Answers
Add() is the statement that calls the function.
Explanation:
The complete program goes as follow.
def Add():
X = 10 + 20
print(X)
Add() #Function call
Make sure that you follow the indentation.
Add() in the last line triggers the Add() definition in the first line and runs the data in it. So, once in, 10+20 = 30 is stored into the variable X and is printed. The function call should always be written after defining it.
Learn more:
Write a Python function sumsquare(l) that takes a nonempty list of integers and returns a list [odd,even], where odd is the sum of squares all the odd numbers in l and even is the sum of squares of all the even numbers in l.
brainly.in/question/15473120
Python program to find absolute difference between the odd and even numbers in the inputted number.
brainly.in/question/11611140