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
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
+ 1
Yeah you got it exactly as i meant,thank you !
0
If you have any further questions, you can DM me👍🏼 Glad to help😁