"When I entered ""7"" as shown in the image, 7 was made into an even number even though it was not an even number."Please tell me the solution.
I would appreciate it if you could tell me in detail what is different and what should be corrected.
python
Is the variable n really an integer?
Isn't n/2 like 3.5?
It's a programming error.
Perhaps the program is not designed to be what you intend.
The if
statement does not determine any s
containing the entered number.
The n
you are looking at is the number of elements in the a
list, so it is 8 and even.
© 2024 OneMinuteCode. All rights reserved.