Is there a way to store + compare a variable in the while-loop's definition directly like this?:
while (char_input = input()) != "=":
...
Instead of like this?:
while char_input != "=":
char_input = input()
...
Is there a way to store + compare a variable in the while-loop's definition directly like this?:
while (char_input = input()) != "=":
...
Instead of like this?:
while char_input != "=":
char_input = input()
...