```
def greaterlessequal5(answer):
if answer > 5:
return 1
elif answer < 5:
return -1
else:
return 0
print greaterlessequal5(4)
print greaterlessequal5(5)
print greaterlessequal5(6)
```

# 99 Problems What am I doing wrong can someone give me the code and explain how they got it

**wizmarco**#2

you should indent your if, `elif and else statemnt`

inside the the function `greaterlessequal5()`

like that

```
def greaterlessequal5(answer):
if condition:
return
elif condition
return
```

edit:

and the name of your function should be `greater_less_equal_5(answer)`

This didn't work for me

def greaterlessequal5(answer):

if condition:(>5):

return 1

elif condition (<5):

return -1

else:

return 0

print greaterlessequal5(4)

print greaterlessequal5(5)

print greaterlessequal5(6)

this is my code:

def greaterlessequal5(answer):

if awnswer > 5:

return 1

elif answer < 5:

return -1

else:

return 0

print greaterlessequal5(4)

print greaterlessequal5(5)

print greaterlessequal5(6)

**wizmarco**#6

Hi you should change the name of your functon from `greaterlessequal5()`

to `greater_less_equal_5()`

in all your code

def greater_less_equal_5(answer):

if answer >= 6:

return 1

elif answer < 5:

return -1

else :

return 0

print greater_less_equal_5(4)

print greater_less_equal_5(5)

print greater_less_equal_5(6)

this is what i got

def greater_less_equal_5(answer):

if answer >= 6:

return 1

elif answer < 5:

return -1

else:

return 0

print greater_less_equal_5(4)

print greater_less_equal_5(5)

print greater_less_equal_5(6)

**bushmonkey09**#13

def greater_less_equal_5(answer):

if answer > 5:

return 1

elif : answer < 5:

return -1

else:

return 0

print greater_less_equal_5(4)

print greater_less_equal_5(5)

print greater_less_equal_5(6)

can someone please help me i dont know what is wrong