Skip to content

Commit

Permalink
Update sensitive_information.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hatimloha authored Sep 2, 2024
1 parent 03e7623 commit bded6d3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Day-05/sensitive_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,36 @@
export password="hatim"

# Programm:
def addition(num1, num2):
return num1 + num2

def sub(num1, num2):
return num1 - num2

def mul(num1, num2):
return num1 * num2

print(addition(5, 10)) # Output: 15
print(sub(50, 10)) # Output: 40
print(mul(10, 20)) # Output: 200

num1 = int(sys.agrv[1])
operation = sys.agrv[2]
num2 = int(sys.agrv[3])

if operation == 'add':
output = add(num1 + num2)
print(output)


# Run command
python3 <file name> 2 & 3









0 comments on commit bded6d3

Please sign in to comment.