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

Corbin's car payment is is $289. This is 37$ less than 1/3 of his monthly income. WHAT is Corbin's monthly income
Example: Our dad tells us funny jokes. What is the direct object in the above sentence? us tells dad funny jokes
Review the characteristics of each type of cell. Then classify each of the following microscopic images as a eukaryotic or prokaryotic cell. Prokaryotic Cell Eu
PLZZZ HELP Which of the following describes the elements of art used in Frida Kahlo's Self-Portrait with Monkeys? A-The artist used oil on canvas as a medium.
Lisa is standing on a dock beside a lake. She drops a rock from her hand into the lake. After the rock hits the surface of the lake, the rock's distance from th
Tính: (1/27)^2016*27^2015
What forces are acting on a car at rest
What are the percents of these?
Please help with 1 and 2
WILL GIVE BRAINLEIST AND 30 POINTSWhat serious political problem has social media created? Candidates use social media to communicate information.People use soc