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

Which amendment changed inauguration day to january 20th
Which of these emotions was easiest to interpret? love jealousy relief happiness
Do you think that CMS schools suffer from racial discrimination and racial profiling?
Simplify each expression
How did Japan achieve major increases in its gross domestic product (GDP) after World War II? Select all that apply.
With technology music can be developed and incorporated into which of the following? A) games, images, queries B) websites , games , presentations C) CAD, spee
I need help ASAP pls
PLEASE ANSWER QUICK!!!!!!!!
A man who lost his arms in a terrorist attack gives an impassioned plea for tougher anti-terrorism laws. Those listening to this speech should wonder A) if the
What type of evidence does the author used to support his argument that students should be required to complete service hours in order to graduate