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

Part a how many milliliters of liquid does the smaller graduated cylinder contain? express your answer in milliliters using the proper number of significant fig
Please Help As Soon As Possible.Thank you
how long would it take a ball dropped from a 100 ft building to hit the ground
The circumference of a circle is 25.12 yards. What is the radius of the circle?
The circumference of a circle is 25.12 yards. What is the radius of the circle?
(will give brainlliest) In your own words, describe how a thunderstorm develops. Be sure to include the three stages of thunderstorm development in your respons
(01.02) kim earns $30 for babysitting on friday nights. she makes an average of $1.25 in tips per hour. write the function of kim's earnings, and solve for how
When someone asks you to pass the salt at the dinner table, you are able to understand the request even if it is asked in a variety of different ways?
Which is a mark of Chaucer's originality?
Why do arteries have more muscle and elastic tissue than veins?