How is if else working fine in this code snippet without any syntactical errors.
def even_or_odd(number):
return 'Odd' if number % 2 else 'Even'
In Python3 if and else introduce code blocks and should be terminated by ":" (a colon), but in the code snippet above inside return statements there is no ":" after if and else.Why is python not showing syntax error