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 3c + 4 = -20 A. -5.3 B. 6 C. 8 D. -8
Which of the following is an essential ingredient of academic self-esteem
64/7 as a mixed number
In which place can you see un oso? (1 point) A en el museo B en el zoologico C en el monumento D en el mar
antifreeze is mixed with water in a car's cooling system because the solution what?
How would I solve this?
Solve the equations, and checks for extraneous solutions.
What was a significant effect of the Greco-Persian Wars?
During the early middle ages western european societies were most unfluenced by
Which is not an african nation