+ 3
Plz correct me
L=int(input("Enter length: ") W=int(input("Enter width: ") def rectangle_area(L,W) area= L*W return(rectangle_area)
8 Respostas
+ 12
You are missing closing brackets, a colon after the def line and the return variable is wrong I made this of it:
L=int(input("Enter length: "))
W=int(input("Enter width: "))
def rectangle_area(L,W):
area= L*W
return(area)
print(rectangle_area(L, W))
+ 4
For int( no )👈closing brace missing., twice..
Call the function to use it...
rectangle_area(L, W)
return calculated area, not function name..
Print the returned value..
Try these corrections...
Hope it helps..
+ 1
Thank you very much . It worked
+ 1
Return area
Then give input of L,W
Then call the function.
+ 1
Plz correct me
L=int(input("Enter length: "))
W=int(input("Enter width: "))
def rectangle_area(L,W)
area= L*W
return area
print(rectangle_area(L, W))
0
Hello
0
My name is Yaroslav
0
From Russia