Code seems to meet all criteria, even defined a number to test it


#1

http://prntscr.com/gymf9c bug?


#2

the outcome should be:

-1
0
1

your outcome:

1
1
1

the problem is that you made a typo in answer variable, both in the if and elif clause


#3

ah, thank you. i am not smart lol


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.