We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03e7623 commit bded6d3Copy full SHA for bded6d3
Day-05/sensitive_information.py
@@ -2,3 +2,36 @@
2
export password="hatim"
3
4
# 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