0

a=int(input('length')) b=int(input('breadth')) c=2*(a+b) d=input('whose perimeter do you want ?') if d='square' print(a,b,c)

What is the error of this code ?

19th Jul 2022, 9:16 AM
Anushka Jangra
Anushka Jangra - avatar
1 Resposta
+ 5
if d == square Do not confuse = and == Please DO NOT put code in the heading, it gets cut off and we can't see it. Put it IN A SCRIPT ON CODE PLAYGROUND.
19th Jul 2022, 9:34 AM
Lisa
Lisa - avatar