Having some trouble getting this to work... Basically I want to use the var binary (returned from inputF) in the convert function. I returned the variable, passed it in, and defined it... Stuck on what to do :/ I also defined it in main and passed it into the function... Says: Local variable 'binary' referenced before assignment.
def inputF():
binary = input("Enter bin #: ")
return(binary)
def convert(binary):
binary = inputF(binary)
print(binary)
return
def main():
binary = input(binary)
inputF()
convert(binary)
return
main()
convert(), the functioninputF()does not take a parameter.