And one more, the 'if' needs a colon at the end
On July 18, 2017 5:10:30 PM MDT, Alan Gauld via Tutor wrote:
>On 18/07/17 18:31, Shane Johnson (shanejoh) wrote:
>
>> def greater_less_equal_5(answer):
>>if answer is '>' 5
>>return 1
>>elif answer is < 5:
>>return 0
On 18/07/17 18:31, Shane Johnson (shanejoh) wrote:
> def greater_less_equal_5(answer):
>if answer is '>' 5
>return 1
>elif answer is < 5:
>return 0
>else:
>return 4
> I’m getting a invalid syntax line 2 error. Any assistance is greatly
> appreciate
On Tue, Jul 18, 2017 at 1:31 PM, Shane Johnson (shanejoh) <
shane...@cisco.com> wrote:
> I am doing the codeacademy python class and have the following code:
>
> def greater_less_equal_5(answer):
>if answer is '>' 5
>
indent the line after the if
>return 1
>elif answer is