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

What kinds of transportation were used to move goods and people before the building of railroads
a dealer gains the selling price of 10 radio sets by selling 6 sets. what is his profit percentage​
A night-light uses 3 W. If the voltage is 120 V, what is the current?​
The table shows ordered pairs of the function y = 8 - 2x. When x = 8, the value of y is у 14 10 6 IT 0 L 10 -12
Please help I’m confused!! I will mark brainliest
Find the values of the variables in the parallelogram. The diagram is not to scale.
Rewrite as a simplified fraction. __ 0.612 = ?
50 POINTS! NEED HELP ASAP! Which logarithmic graph can be used to approximate the value of y in the equation 3y = 8? (6 points)
A jacket costs $94.95 is is on sale for 30% off estimate the sale price
Frieda is itemizing deductions on her federal income tax return and had $1700 in non-reimbursed work expenses last year. If her AGI was $76,000, and if non-reim