вот мой код для создания программы расчета площади
`
Код: Выделить всё
`print ("*****AREA CALCULATOR*****")
print ("""press 1 to get an area of square
press 2 to get an area of rectangle
press 3 to get an area of circle
press 4 to get an area of triangle""")
choice = int(input("enter a number between 1-4: "))
if choice == 1:
side = float(input("enter the length of one side: "))
area = side**2
print("area of square is", area)
repeat = input("do you want to try again with square: ")
if repeat == "no":
break`
[img]https://i.sstatic. net/2fm6IhJM.png[/img]
Подробнее здесь: https://stackoverflow.com/questions/790 ... ation-leve
Мобильная версия