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

calculate the mean of the following sales: $300 $600 $500 $300 $300 $600 $500 and $500$500$600$400$450​
does anyone know the answers?? Show work please.
han is riding at a consrant speed of 16 miles per hour.write an expression that shows how many miles han has gone after t hours​
how is the product of 2 and -5 shown on a number line
PLS PLS PLS PLS PLS PLS RESPOND SOON!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Marcus is picking songs to play during a slideshow. The songs are each 3 1/2 mi
1/3 to 1/6 identify the percent of change
ericka, a realestate agent, specializes in leasing apartments. her commision is 150% of her clients monthly rent. last week, she earned $850 in commision for an
plz help pt.1thank u​
The function V(r)=4/3 nr3 can be used to find the volume of air inside a basketball given its radius . What does V(r) represent? Can someone help me out?
how do i find the angle of c?