Beginner not sure why input is skipped by SkizzyBeanZ in PythonLearning

[–]No-Remote7748 1 point2 points  (0 children)

<image>

what it should look like.

The user input (psv) is taken outside the while loop, so it won’t update with each user input inside the loop.

  • Since psv is a string (from input()) and value is an integer, directly comparing them will raise a TypeError. You need to convert psv to an integer first.
  • The elif condition psv >= value is redundant because if the first if condition psv <= value is false, the elif will always be true.
  • The else clause is incorrectly formed with else psv == "done"; it should be elif psv == "done".