My issue
My code
# Update the '_' below to solve the problem
print(__ * __) # Area of the rectangle
_____(_ * (__ + __)) # Perimeter of the rectangle
Learning course: Learn Python
Problem Link: CodeChef: Practical coding for everyone
Hii,
You have asked a question in which we have to calculate the area of triangle and perimeter of a rectangle in Python.
We also know,
Area of a rectangle is = length * width
Perimeter of a triangle is = 2*(length+width)
so let we have length = 12
and width = 12
then we have to calculate area and for printing it on console in Python we have to use print function -:
print(lengthwidth)
print(2(length+width))
This is my first answer I hope I explained it to you correctly.Also please ignore my grammar mistakes. And suggest me if there is any problem.
All the best to you for your coding journey.