我正在上一堂课,但我被困住了。由于我是 Python 新手,因此很难弄清楚我哪里出错了。
#Write your two "if" statements below!
def true_function():
if #Fill in your `if` statement here!
return #Make sure this function returns `True`
def false_function():
if #Fill in your `if` statement here!
return #Make sure this function returns `False`
这是我提出的解决方案,它给了我一个错误;
#Write your two "if" statements below!
def true_function():
if 2 + 2 == 4: #Fill in your `if` statement here!
return 'True' #Make sure this function returns `True`
def false_function():
if 2 + 2 == 5: #Fill in your `if` statement here!
return 'False' #Make sure this function returns `False`
有人可以帮助我了解我哪里出错了吗?