Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
training
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
arjun.b
training
Commits
80bb3eab
Commit
80bb3eab
authored
Jan 17, 2023
by
arjun.b
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Assignment 1
parent
c6914ce5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
index.py
+1
-1
shape/rectangle.py
+1
-0
No files found.
index.py
View file @
80bb3eab
...
...
@@ -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
s
quare="
,
obj_sqr
.
area
(),
"
\n
"
,
"perimeter of square"
,
obj_sqr
.
perimtr
())
print
(
"area of
S
quare="
,
obj_sqr
.
area
(),
"
\n
"
,
"perimeter of square"
,
obj_sqr
.
perimtr
())
shape/rectangle.py
View file @
80bb3eab
#exception
class
MyException
(
Exception
):
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment