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

Perform the calculation then round to the appropriate number of significant digits. 128.5 x 3.24
2 x 2 (: you can have the points :)
Write the coordinates of the vertices after a transition 5 units right S= U= T=
Solve for x.-5(x + 1) + 3x - 3= -14Answer:Submit AnswerPrivacy Policy Terms of SeCopyright 23201
What would happen to a freshwater protozoan if removed from its normal habitat and placed into a saltwater pool? (hint: freshwater=high concentration of water.
PSYCHOLOGY For this assignment, you are tasked with finding, taking, and posting a photo in your environment (inside or outside) that best reflects the informat
find a, b and c. don’t be slow. show the equation and answer for all pls (:
the rule T(4, -1) is used for point (2, -7). Where is the translated point in the coordinate system
what is the LCM of 4, 5
Simplify the rational expression below. When typing your numerator and denominators be sure to but the term with the variable first and do not put spaces betwee