0

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()
  ...
user326964
  • 452
  • 1
  • 5
  • 13

0 Answers0