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 brain jus help Which continent did not have immigrants come to Georgia in the early history of the area? Africa South America Europe North America
A _ is a substance with a pH greater than 7
10. What is the circumference of P in terms of a. Look at image
A seventh-grade teacher asks her students a survey question. Which questions are appropriate for the teacher to ask her population? Select three options.
What is the median of these numbers : 90, 95, 92, 93, 91, 97
Lisa buys 6 packets of potato chips for a birthday party. If one packet of chips costs $2.68, how much money does Lisa spend?
"My mother, my sister, and my friend were all in attendance. "I said hello to her." In this sentence A. "her" means the mother B. "her" means the friend C. "he
pls help me simplify
WLAN's is achieved using Wi-Fi technology. * 1.true 2.false?
What is the equation in slope-intercept form of the line that passes through the point (2. -2) and is perpendicular to the line represented by y=2/3x+2A. y=5/2