-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexp_1_1.py
42 lines (29 loc) · 819 Bytes
/
exp_1_1.py
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
#/*************************************************************************
# > File Name: exp-1-1.py
# > Author: xiaoxiaoh
# > Mail: [email protected]
# > Created Time: Thu Oct 26 11:35:29 2017
# ************************************************************************/
#!/usr/bin/python
print("Enter two numbers from user: ");
num1 = input("Type in a number: ")
num2 = input("Type in another number: ")
# s = raw_input("Who Goes there? ")
def myExp():
print "num1 ** num2 = ", num1 ** num2
def myMul():
print "num1 * num2 = ", num1 * num2
def myDiv():
print "num1 / num2 = ", num1 / num2
def myRem():
print "num1 % num2 = ", num1 % num2
def myAdd():
print "num1 + num2 = ", num1 + num2
def mySub():
print "num1 - num2 = ", num1 - num2
myExp()
myMul()
myDiv()
myRem()
myAdd()
mySub()