0

function this :/

my if statement works till i put it in the function then i get errors what am i doing wrong https://code.sololearn.com/c68Dhzr8T2d8

6th Mar 2019, 9:44 PM
Michael Harrall
Michael Harrall - avatar
3 odpowiedzi
+ 1
It is hard to know what you did there. Here it looks and works fine. Maybe a problem with the indentation? (Side remark: You need another case for 0 with is neither pos nor neg.)
6th Mar 2019, 11:26 PM
HonFu
HonFu - avatar
0
ok I think i have it working in this IDE however in jupyter it is returning the num1 and the if else any thoughts
6th Mar 2019, 9:50 PM
Michael Harrall
Michael Harrall - avatar
0
Well the requirement was 0 down is negative I get the lack of understanding. That awnser still got a fail from my professor
7th Mar 2019, 2:13 AM
Michael Harrall
Michael Harrall - avatar