6th day of python challenges 88-94

This commit is contained in:
abd.shallal
2019-07-25 16:39:25 +03:00
parent d4902e6ad1
commit 4b84e9882a
10 changed files with 193 additions and 120 deletions

View File

@@ -0,0 +1,9 @@
import array as arr
new_array = arr.array('i', [])
for i in range(5):
num = int(input('Enter number to add to array : '))
new_array.append(num)
new_array = sorted(new_array)
new_array.reverse()
print(new_array)