Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
Internship-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
ajil.k
Internship-Training
Commits
eba74e5a
Commit
eba74e5a
authored
Jan 17, 2023
by
ajil.k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated assignment1
parent
5e34cf47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
shape/rectangle.py
+2
-2
No files found.
shape/rectangle.py
View file @
eba74e5a
...
@@ -16,6 +16,7 @@ class Rect:
...
@@ -16,6 +16,7 @@ class Rect:
print
(
"
\n
Exception Occurred
\n
"
)
print
(
"
\n
Exception Occurred
\n
"
)
finally
:
finally
:
print
(
"---------------------------"
)
print
(
"---------------------------"
)
def
perimeter_rect
(
self
):
def
perimeter_rect
(
self
):
try
:
try
:
perimeter
=
2
*
(
self
.
length
+
self
.
breadth
)
perimeter
=
2
*
(
self
.
length
+
self
.
breadth
)
...
@@ -23,4 +24,4 @@ class Rect:
...
@@ -23,4 +24,4 @@ class Rect:
except
TestException
:
except
TestException
:
print
(
"
\n
Exception Occurred
\n
"
)
print
(
"
\n
Exception Occurred
\n
"
)
finally
:
finally
:
print
(
"---------------------------"
)
print
(
"---------------------------"
)
\ No newline at end of file
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