6th day of python challenges 88-94
This commit is contained in:
9
challenges88-95/challenge-088.py
Normal file
9
challenges88-95/challenge-088.py
Normal 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)
|
||||
Reference in New Issue
Block a user