My issue
I didn’t understand the prolblem.
My code
# Update the '_' below to solve the problem
print( * __) # Area of the rectangle
print(_ * (__ + __)) # Perimeter of the rectangle
Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone
@saibhouthik227
The problem states that u have to print the area and perimeter of the rectangle .
So u have to replace the blanks with the correct logic and syntax.
print(1113)
print(2(11+13))
print( length * width) # Area of the rectangle
print(2 * (length + width)) #perimeter of rectangle
Hi @saibhouthik227
In your code instead of ___ write the numbers for which you want your desired output.
for eg- if you want area for 11 and 13
add- print( 11* 13) # Area of the rectangle
(as formula for area is length*breadth)
print(2 * (11 + 13)) # Perimeter of the rectangle
(as formula for perimeter is 2 x (length x breadth)