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

Can anyone help me? Enter the missing numbers in the boxes to complete the table of equivalent ratios.
Please respond as soon as possible! I will rate you 5 stars!! What are the zeros of the function? Use the zeros to find all of the linear factors of the polynom
With which other countries did Great Britain sign treaties around the same time as the United States
A. Y=3/4x + 9 and y= -4/3x + 1 B. Y= 3/7x - 14 and y= 7/3x + 3 Is A and B parallel,perpendicular, or neither?
Which angles are corresponding angles
Electromagnetic waves are not mechanical waves, which means they can travel in a:
How are messages carried throughout the human body from the brain to the nervous system?       A. Active transport  B. Chemical channels  C. Electrical signals
what can you say about the end behavior of the function F(x)= -4x^6 +6x^2 ?
3 primary causes of childhood obesity in the U.S. and how/if these differ from the causes of adult obesity.
WHAT IS 6 x 6 x 6 x 6 x 6 is exponet form