python basics

ساخت وبلاگ
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.
CodingForums...
ما را در سایت CodingForums دنبال می کنید

برچسب : نویسنده : codingforums بازدید : 143 تاريخ : دوشنبه 29 خرداد 1396 ساعت: 3:33