-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPy1.py
More file actions
55 lines (34 loc) · 1.09 KB
/
Copy pathPy1.py
File metadata and controls
55 lines (34 loc) · 1.09 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# A simple program to.....
#
# Max David Metelus
# Date:
a = input("what is your name? ")
print('Hello to you, '+ a)
print('what whould you like to do today, '+ a)
'''
print a new function that is a different way to add subtract multiply and devide...
def sum(a,b)
return sum( a + b )
print(sum(2, 5))
'''
#ask the user to store 2 vales and store them in memory.
#convert the srings into regular nombers integers
num1, num2 = input('Enter two numbers: ').split()
num1 = int(num1)
num1 = int(num2)
sum = num1 + num2
difference = num1 - num2
product = num1 * num2
quotient = num1 / num2
remainder = num1 % num2
power = num1 ** num2
print("{} + {} = {}".format(num1, num2, sum))
print("{} - {} = {}".format(num1, num2, difference))
print("{} * {} = {}".format(num1, num2, product))
print("{} / {} = {}".format(num1, num2, quotient ))
print("{} % {} = {}".format(num1, num2, remainder))
print("{} ** or ^ {} = {}".format(num1, num2, power))
randList = ["string", 1.234, 28]
oneToTen = list(range(10))
import string
print(help(string))