Skip to content

Commit bded6d3

Browse files
authored
Update sensitive_information.py
1 parent 03e7623 commit bded6d3

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Day-05/sensitive_information.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,36 @@
22
export password="hatim"
33

44
# Programm:
5+
def addition(num1, num2):
6+
return num1 + num2
7+
8+
def sub(num1, num2):
9+
return num1 - num2
10+
11+
def mul(num1, num2):
12+
return num1 * num2
13+
14+
print(addition(5, 10)) # Output: 15
15+
print(sub(50, 10)) # Output: 40
16+
print(mul(10, 20)) # Output: 200
17+
18+
num1 = int(sys.agrv[1])
19+
operation = sys.agrv[2]
20+
num2 = int(sys.agrv[3])
21+
22+
if operation == 'add':
23+
output = add(num1 + num2)
24+
print(output)
25+
26+
27+
# Run command
28+
python3 <file name> 2 & 3
29+
30+
31+
32+
33+
34+
35+
36+
37+

0 commit comments

Comments
 (0)