- 1

HOW TO RECALL A FUNCTION IN PYTHON?

14th Nov 2019, 8:55 AM
Thakur Lion😎😎
Thakur Lion😎😎 - avatar
5 Respostas
+ 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.
14th Nov 2019, 9:25 AM
★«D.Connect_Zone»
★«D.Connect_Zone» - avatar
0
I am sending u a code First look at it and then
14th Nov 2019, 2:18 PM
Thakur Lion😎😎
Thakur Lion😎😎 - avatar
14th Nov 2019, 2:18 PM
Thakur Lion😎😎
Thakur Lion😎😎 - avatar
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.
14th Nov 2019, 2:51 PM
★«D.Connect_Zone»
★«D.Connect_Zone» - avatar
0
Then what is the way to print a particular random function
15th Nov 2019, 8:57 AM
Thakur Lion😎😎
Thakur Lion😎😎 - avatar