I have a problem with the following code:
# Write your in_range function here: def in_range(num,lower,upper): return True if num >= lower and num <= upper else return False
the error output is as follows:
File "script.py", line 3 return True if num >= lower and num <= upper ^ SyntaxError: invalid syntax
SyntaxError doesn`t help much, the error is in line 3 alright. But I have no Idea what went wrong.