Apr-16-2017, 07:13 AM
You have commented out your exit line
And
if not value.strip(): exit(0)or
if value.strip() == '': exit(0)strip will remove all space variants - including CR - at input borders. I think that in Python3 it's unnecessary, but to be on the safe side...
And
while True: get_value(0.0)(You don't need counter, and in Python you separate words in identifiers by underscores)
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.