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

011 10.0 points A sound wave has a frequency of 634 Hz in air and a wavelength of 0.47 m. What is the temperature of the air? As- sume the velocity of sound at
2x+3y=256 how do I solve
Describe the unique challenge marketers face when attempting to use differentiated marketing for different cultures and ethnicity.
Please help!!!A student performs a TLC experiment and at the end of the experiment, sees no spots other than the initial spot. What does this mean, and what sho
a $129 product is marked up 20%. how much is the markup?
4 PointsA jar of mass 2.1 kg sits on a table. What is the normal force acting on thejar?OA. 33.1 N.B. 2.1 NO C. 5.3 NO D. 20.6NSUBME​
10. A survey of 2,000 registered voters is usedto predict by how many percentage points acandidate is leading. Of the 2,000 people, 1,240planned to vote for Can
Helppp asappp please!!!!
What is a major limiting factor for trees in this forest population?Explain.
please can I have some help