I want to know if I can create a function that within it's arguments I can define what function to use for something else? eg:
def askquestion(functionname):
userinput == str(input("Are you sure you want to run this? <y/n> "))
if userinput = "y":
functionname()
elif userinput == "n":
print("returning to main menu")
else:
print("That is not a valid input!")
I dont know if I explained that very well but if you could help me out with this it would be great.