Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kl_shapes
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
arun.uday
kl_shapes
Commits
6714b999
Commit
6714b999
authored
Jan 17, 2023
by
arun.uday
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comments updation
parent
e18614bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
scripts/services/choice_selection.py
+2
-1
scripts/services/main_service.py
+1
-1
No files found.
scripts/services/choice_selection.py
View file @
6714b999
#
#
handler packages for shapes
from
scripts.core.handlers
import
Rectangle
,
Circle
,
Square
from
scripts.core.handlers
import
Rectangle
,
Circle
,
Square
# return statement for invalid choice
def
get_rectangle
(
calculation_choice
):
def
get_rectangle
(
calculation_choice
):
rect_length
=
int
(
input
(
"Enter the length"
))
rect_length
=
int
(
input
(
"Enter the length"
))
rect_breadth
=
int
(
input
(
"Enter the breadth"
))
rect_breadth
=
int
(
input
(
"Enter the breadth"
))
...
...
scripts/services/main_service.py
View file @
6714b999
# Importing
modules rectangle, circle, square from scripts
# Importing
choice selection module
from
scripts.services.choice_selection
import
get_rectangle
,
get_circle
,
get_square
from
scripts.services.choice_selection
import
get_rectangle
,
get_circle
,
get_square
...
...
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