0

Is it possible to pass input from one function to another?

Hello. I am currently trying to make a kind of an "index". To put it simply, i have a function that prints out options(categories) and asks for input. Then , i want it to print out more options and ask for input again. Is this possible without making a global variable? If so, please how im at the end of my line,thank you very much

15th May 2019, 6:04 PM
Timotej Tabaček
Timotej Tabaček - avatar
3 odpowiedzi
0
Do you want something like this? def func1(input) if input == spam: minifunc1(2ndinput): - > code here if input == eggs: def minifunc2(2ndinput): -> code here If you could give an example, that would be great
15th May 2019, 6:44 PM
Trigger
Trigger - avatar
+ 1
Yeah you got it exactly as i meant,thank you !
15th May 2019, 6:48 PM
Timotej Tabaček
Timotej Tabaček - avatar
0
If you have any further questions, you can DM me👍🏼 Glad to help😁
15th May 2019, 6:49 PM
Trigger
Trigger - avatar