When I try to return a function as an integer, and then use that integer in another function, the argument becomes a type 'function'
example:
def makeChoice():
c = 0
if input='yes':
c = 1
return int(c)
def choiceMade(c)
if c == 1:
print('finally this damn thing works')
while True:
choiceMade(makeChoice)
if I debug choiceMade(c) with print(c), I get "function at x980342" instead of an integer, and the if/else statement never is true.
I was under the impression that python functions could be called as arguments so now I am not sure what I am doing wrong.