Computer Science, asked by mythilymech, 1 month ago

def multiply ('l*b')
print('l*b')
return
print('area of the rectangle=')
multiply('60,80')
What mistake is done here?

Answers

Answered by kurmiamritp
2

Answer:

syntax error in line 1.

correct line should be

def multiply(l,b):

Your second mistake is that you should not use ' ' because you have to use integer data type for arithmetic calculation.

so correct program should be :

def multiply(l,b):

x = l*b

return x

area = multiply(60*80)

print (area)

another way to write this program is:

def multiply(l,b):

print(l*b)

multiply(60*80)

>>>>>>>>>>>>>>>>>>>>>>>>

Thanks for asking !

========================

Hope it helps you

_____________________

Please mark me brainliest

----------------------------------------

Similar questions