An error has occurred, and it is impossible to distinguish between even and odd numbers.

Asked 1 years ago, Updated 1 years ago, 350 views

When I tried to do the image, an error occurred in the n part.
Would it be possible to fix and move only the n part without breaking the shape above?

python

2023-03-06 10:07

2 Answers

The line in question is

elifn%2==1:

Isn't that right?


2023-03-06 13:31

Do not write conditional statements in the else section, just write else.


2023-03-06 16:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.