I'm trying to understand how functions work, I defined my function with length and area parameters.
Here is the problem: I want to write if area is less than a # then print a string of text.
def rec_area(length, width):
area = length * width
print(area)
if area : < 25 # Here is the problem, "expected expression"
print("The area is smaller than expected..")
rec_area(5, 5)
I tried to put if area: < 25
I also tried if area -= 25
I am lost.
SyntaxError: invalid syntax. If you get any error then you should show it in question (not in comments) as text (not image). And show full error message (full traceback) because there are other usefull information. Maybe visit some other questions to see how others ask questions, and what information they put in question.