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

Which set of quantum numbers cannot specify an orbital?.
How could y squared be rewritten?​
Question 1 of 10 Thunderstorms require lots of moisture to form. What are two other conditions that are required for thunderstorms to form? A. High pressure B.
PLEASEE HELP WILL GIVE BRAINLIEST
if -2 is the root of the quadratic equation x^2-5x+c=0 find the value of c​
What democratic themes are identified as integral to the civil rights movement by baker?.
Tarzan is hanging onto a vine, while standing on a branch. What will be his speed when he gets to the bottom of the swing if the branch was 6 m above this lowes
A triangle has the following coordinates: (8,6), (4,-4), (-9,-2) After a reflection, it has the coordinates (-8,6), (-4, -4), (9,-2). What was the line of refle
During translation, what kind of bond is formed between amino acids?.
How are dna and mrna different