Commit 80bb3eab by arjun.b

Assignment 1

parent c6914ce5
......@@ -14,4 +14,4 @@ print("area of circle=", obj_cir.area(), "\n", "perimeter of circle", obj_cir.pe
# initializing the side of the square
side = float(input("enter the side of the square"))
obj_sqr = Square(side) # create the object of the class Square
print("area of square=", obj_sqr.area(), "\n", "perimeter of square", obj_sqr.perimtr())
print("area of Square=", obj_sqr.area(), "\n", "perimeter of square", obj_sqr.perimtr())
#exception
class MyException(Exception):
pass
......
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