- 1
HOW TO RECALL A FUNCTION IN PYTHON?
5 odpowiedzi
+ 3
Examples:
def function_name():
.......
.....
function_name() # calling function.
def add(a, b):
return a + b
print(add(2, 5)) #calling function
If you want to recall until there is like invalid input:
put it in loop and if user does make some change stop it.
Quite didn't get exactly the question but may be this helps.
0
I am sending u a code
First look at it and then
0
Making list inside you give function call.
list1 = [ a(), b()... ]
Even when you don't print list1 they will get executed.
I don't think that method will work.
0
Then what is the way to print a particular random function