I am newbie regarding python.I scripted a code to find the perimeter of a rectangle.The code is as follows
Code:
#To calculate the perimeter of a rectangle
length=int(input("Enter the length"))
breadth=int(input("Enter the breadth"))
#calculate perimeter
perimeter=2*(length+breadth)
print(perimeter)
In the print option,i tried giving it as print("The area of the perimeter is:" perimeter),but it throws an error.Please enlighten.
برچسب:
نویسنده: آیلین رضوانی
تاريخ: دوشنبه
29 خرداد
1396 ساعت: 3:33