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

Does cellular respiration result in a net input of energy or a net output of energy?
A wireless phone plan costs Penny $35 for a month of service during which he sent 450 text messages. If he was charged an fixed a fee of $12.50, how much did he
How is the process of egg donation related to consumer consumption?
Giving a test to a group of students, the grades and gender are summarized belowGrades and GenderABC TotalMale 20915 44Female | 12 13 14Total 32 22 293983If one
Someone help me on question 10 it’s for culinary
What is the improper fraction for 1/3?
There is a line that includes the point (1,10) and has a slope of 2. What is its equation in slope-intercept form?​
Long answer lquestionExplain the causes of uneaven distribution oppopulation in Nepal?​
1) List two equivalent fractions for 2/8. One number 1 I don’t know where to start
A) co2 is non polar while h2o is polar why? b) why pcl5 is very reactive? c) h2o is a liquid h2s is a gas. why? It is a 3 mark question so (a) carries 1 mark, (