-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNumbers.py
36 lines (27 loc) · 1.03 KB
/
Numbers.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
import statistics
import numbers
import datetime
from statistics import mean
# finding the exponential values
print (10**2)
print(100*1.10**7)
savings = 100
result = 100 * 1.10 ** 7
# Fix the printout
print("I started with $" + str(savings) + " and now have $" + str(result) + ". Awesome!")
list1 = [100,300,120]
list2 = [10,220,580]
print("2nd value list1 is:" + str(list1[1]) + " and 2nd value in list2 is:" + str(list2[1]))
list3 = list1 + list2
print ("list3 is:" + str(list3))
sortedarray = sorted(list3)
print("Sorted list is:" + str(sortedarray))
print("Minm number in the array is " + str(min(sortedarray)))
print("Maxm number in the array is "+ str(max(sortedarray)))
#print("Average of the array is " + str(round(sum(sortedarray)/len(sortedarray))))
print("Average of the array is {0}".format(str(round(sum(sortedarray) / len(sortedarray)))))
print("Mean Average is " + str(round(mean(sortedarray))))
oTime = datetime.datetime.now()
finalTime =oTime.isoformat()
stime = oTime.today()
print(stime)