Phython Question

Why is the if statement not surrounded by ( ) parenthesis like all the other if statement I wrote?

def twice_as_large(num1, num2):
if num1 > 2 * num2:
return True
else:
return False

Write your twice_as_large function here:

def twice_as_large(num1, num2):
if num1 > 2 * num2:
return True
else:
return False

if statements do not require parens on the condition, just a colon following.

2 Likes