forked from sinisterstrike/calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathteam6.py
More file actions
39 lines (34 loc) · 738 Bytes
/
team6.py
File metadata and controls
39 lines (34 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
def add(a, b):
"""
This function adds two numbers
"""
return a + b
def sub(a,b):
"""
This function subtracts two numbers
"""
return a - b
# print "The first number you want to subtract?"
# a = int(raw_input("First no: "))
# print "What's the second number you want to subtract"
# b = int(raw_input("Second no: "))
# """
# This function subtracts two numbers
# """
# result = sub(a,b)
# """
# this prints the results
# """
# print "The result is: %r." % result
def opp(a):
return a * -1
# print "Number you want to change"
# a = int(raw_input("Number to change: "))
# result = opp(a)
# """
# This function changes the sign of the number
# """
# print "The result is: %r." % result
# """
# this prints the results
# """