Commit 3723a5c3 by arjun.b

project structure updated

parent 97245889
from scripts.services.index import shape
shape()
from scripts.constants.const import *
class myException(Exception):
pass
class Circle:
def __init__(self, radius):
self.radius = radius
def area(self):
try:
return 3.14 * self.radius * self.radius
return pi * self.radius * self.radius
except myException:
print("exception occurred")
def perimetr(self):
try:
return 2 * 3.14 * self.radius
return 2 * pi * self.radius
except myException:
print("exception occurred")
from shape.rectangle import Rect
from shape.Circle import Circle
from shape.square import Square
from scripts.core.handlers.rectangle import Rect
from scripts.core.handlers.Circle import Circle
from scripts.core.handlers.square import Square
i = 1
while i == 1:
def shape():
i = 1
while i == 1:
print("enter the choice \n1.area and perimeter of rectangle\n"
"2.area and perimeter of circle\n"
"3.area and perimeter of square\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment