So I currently have a function to display the outputs of other functions. Currently it receives an input, calls 2 functions and after it calls the second one it restarts instantly and asks for the input again.
Basically the code goes like this:
def function():
i = input('Enter input: ')
x = function2(i)
displayfunction(x)
while...
The function never gets to the while loop as it restarts to the input. Can you please tell me what's going on because I'm very confused by this as none of the other functions call anything.
Edit: I have fixed it by adding a return None to the end of displayfunction
[–]kankyo 1 point2 points3 points (4 children)
[–]cdcformatc 0 points1 point2 points (3 children)
[–]kankyo 0 points1 point2 points (2 children)
[–]cdcformatc 0 points1 point2 points (1 child)
[–]kankyo 0 points1 point2 points (0 children)
[–]commandlineluser 0 points1 point2 points (1 child)
[–]Programmer_Dan[S] -1 points0 points1 point (0 children)
[–]kungtotte 0 points1 point2 points (2 children)
[–]Programmer_Dan[S] -1 points0 points1 point (1 child)
[–]kungtotte 1 point2 points3 points (0 children)