I am trying to run a very simple code in python console of FreeCAD.
But the problem is that I get unexpected result in the FreeCAD while if I run the same code in python it will be the way it intended to act.
Here is the code:
Code: Select all
def next():
while(True):
userinput = input()
if(userinput == 'y'):
print("bravo")
return
else:
print("not good answer")
Please let me know if there is something I missed and why is that.
Thank in advance.