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

ill give brainliest What physical adaptions did the Incas have to make when they built their cities?​
Someone please help me What effect would lowering the temperature have on this reaction? 3H2 + N2 + 2NH3 + energy A. H2 and N2 would react to produce more NH3.
Give two reasons why you think someone would try a fad diet. (2 pts)
I need help with my homework ​
what is the final cost of an item that is regularly $130.00 but we have reduced by 10%?
–Hola, ¿cómo te llamas? –Soy Violeta. –Encantada. –Igualmente. –¿________?
In a particular year, a total of 50,127 students studied in two of the most popular host countries when traveling abroad. If 8383 more students studied in the m
What type of mirror should be used for this application? Explain why this mirror is the right choice for a telescope.
Please Help Need this ASAP!!! The First and correct answer will be marked Brainlest!! Solve all 3 problems!!!!
Solve the indicail equation for x 2^x-1 =3^2x-1