求助Python大大,教教小的,怎么修改,是Conditionals & Control Flow这一章的第15个习题
题目是这样的:
Write an if statement in the_flying_circus(). It must include:
and, or, or not;
==, !=, <, <=, >, or >=;
an if, elif, AND else statement;
it must return True when evaluated.
我的代码是这样的:
def the_flying_circus():
# Start coding here!
if 1 > 5:
return False
elif True and False != True:
return True
else:
return False
print the_flying_circus()
print the_flying_circus()
print the_flying_circus()
题目是这样的:
Write an if statement in the_flying_circus(). It must include:
and, or, or not;
==, !=, <, <=, >, or >=;
an if, elif, AND else statement;
it must return True when evaluated.
我的代码是这样的:
def the_flying_circus():
# Start coding here!
if 1 > 5:
return False
elif True and False != True:
return True
else:
return False
print the_flying_circus()
print the_flying_circus()
print the_flying_circus()