Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Calculator
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
Calculator
Commits
53c43d10
Commit
53c43d10
authored
Jan 16, 2023
by
ajil.k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
7a6937d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
30 deletions
+34
-30
.idea/workspace.xml
+23
-14
main.py
+11
-16
No files found.
.idea/workspace.xml
View file @
53c43d10
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"bb693d69-f5a6-4645-8829-eaa5a6f92c0e"
name=
"Changes"
comment=
"files added"
/>
<list
default=
"true"
id=
"bb693d69-f5a6-4645-8829-eaa5a6f92c0e"
name=
"Changes"
comment=
"files added"
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/main.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/main.py"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_NON_ACTIVE_CHANGELIST"
value=
"false"
/>
...
...
@@ -66,22 +69,29 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1673872870461
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"2"
/>
<task
id=
"LOCAL-00002"
summary=
"files added"
>
<created>
1673873342757
</created>
<option
name=
"number"
value=
"00002"
/>
<option
name=
"presentableId"
value=
"LOCAL-00002"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1673873342757
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"3"
/>
<servers
/>
</component>
<component
name=
"Vcs.Log.Tabs.Properties"
>
<option
name=
"TAB_STATES"
>
<map>
<entry
key=
"MAIN"
>
<value>
<State
/>
</value>
</entry>
</map>
</option>
</component>
<component
name=
"VcsManagerConfiguration"
>
<MESSAGE
value=
"files added"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"files added"
/>
</component>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
<breakpoints>
<line-breakpoint
enabled=
"true"
suspend=
"THREAD"
type=
"python-line"
>
<url>
file://$PROJECT_DIR$/main.py
</url>
<line>
8
</line>
<option
name=
"timeStamp"
value=
"1"
/>
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
</project>
\ No newline at end of file
main.py
View file @
53c43d10
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
def
print_hi
(
name
):
# Use a breakpoint in the code line below to debug your script.
print
(
f
'Hi, {name}'
)
# Press Ctrl+F8 to toggle the breakpoint.
# Press the green button in the gutter to run the script.
if
__name__
==
'__main__'
:
print_hi
(
'PyCharm'
)
# See PyCharm help at https://www.jetbrains.com/help/pycharm/
def
add
(
n1
,
n2
):
sum
=
n1
+
n2
print
(
sum
)
def
subtract
(
n1
,
n2
):
difference
=
n1
-
n2
print
(
difference
)
def
num1
=
float
(
input
(
"Enter the first number"
))
num2
=
float
(
input
(
"Enter the second number"
))
add
(
num1
,
num2
)
subtract
(
num1
,
num2
)
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