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

You have a dog walking business. You charge based on weight of the dogs. For 45 min walk your prices are 0-15lbs you charge $5 15-45lbs you charge $7 Over 45lb
Please help me!! 1. What aspects of culture would be hard to maintain under the forced labor practices of the European colonies? 2. Is it important to distingui
The perimeter of a rectangle is 64 m and its length is 3 times its width, what is the length of the Rectangle?
Question 3 of 10 How did the Industrial Revolution change working conditions for people? A. Workers began to earn more money O B. Owners were able to train more
The perimeter of a rectangle field is 118m.if the length of rectangle is 7m less than twice the width ,what is the length of the field
Silica (quartz) is a mineral whereas sandstone is a rock. Why?​
I need good explanation this question.
(Marking Brainliest) What is the vertex form of the equation?y = x^2 - 4x + 7​
which statement about this figure is true?
Why do we add the exponents when multiplying monomials that have the same base? Please help me thank you.