Markynsai Markynsai
  • 02-03-2021
  • Computers and Technology
contestada

Need help with a program to search to sort elements in an array.(increasing or decreasing order)

Respuesta :

60002135330 60002135330
  • 02-03-2021

This is for Python

numbers = [7, 3, 6, 9, 0]

print(numbers.sort())

Output: [0, 3, 6, 7, 9]

numbers = [7, 3, 6, 9, 0]

print(numbers.sort(reverse = True))

Output: [9, 7, 6, 3, 0]

Answer Link

Otras preguntas

Solve the system of equations using any method. y = x2 + 4 y = 2x + 4
In personal finance, one makes decisions based on needs vs. wants. What is considered a need? something one would like to have something ones does not budget fo
The function f(x) is shown on the graph. If f(x) = 0, what is x? A: 0 onlyB: -6 onlyC: -2, 1, or 3 onlyD: -6, -2, 1, or 3 only​
HELP don’t understand
What does the k in kW stand for​
I will give you brainliest!!! if you do this Go on YT Helen Herrera with 56 subs! Sub now :)
In ceramics what seems to be universal human trait
I need help with all this
Enter the decimal 1.27 (repeating decimal)as an improper fraction in the simplest form.
Which of the following was formed by the Second Continental Congress in June 1775? A. Continental Army B. Supreme Court C. Federal Reserve D. Bank of th