while True: input = raw_input(\"enter input: \") result = useInput(input) def useInput(input): if input == \"exit\": break #return 0 / quit /
"if logic" directly in the while loop,