print "This is to find the area or perimeter of a rectangle "
print "Do you want to find the area(a) or perimeter(p) of your rectangle?"
a= raw_input(" I want to find the ")
if raw_input = (a)
print "What is the length of the rectangle?"
b = int(raw_input("The length of the rectangle is "))
print "What is the width of the rectangle?"
c = int(raw_input("The width of the rectangle is "))
d = (2 * b) + (2 * c)
print d
if raw_input = (p)
print "Got it. What is the length of your rectangle?"
x = int(raw_input("The length of the rectangle is "))
print "What is the width of your rectangle?"
y = int(raw_input("The width of the rectangle is "))
z = x * y
print z
이
가 어떻게 a
이 지역이며 p
이 경계라고 말할 코드를 프로그램 할 수 경계하기 위해 경우?문이 지역을 찾아
지역 점검 경계선과 경계선 검사 영역이 있습니까? –
나는 무엇을 의미하는지 모르겠다. – user3502630
[파이썬에서 문자열 형식] (https://docs.python.org/2/library/stdtypes.html#string-formatting-operations)도 찾고 계십니까? – miah