77. Python Program to Suppress the Negative elements from the given Array elements.
How does this program work?
- This program is used to suppress the negative elements from the given array elements using Python.
Here is the code
a = list()
number = int(input( "Enter the number of elements you want: "))
print ('Enter numbers in array: ')
for i in range(int(number)):
n = input( "number : ")
a.append(int(n))
a.sort(reverse=True)
print(a)