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 is the silk road? What valuable products were traded on the silk road?
What is the silk road? What valuable products were traded on the silk road?
What is the silk road? What valuable products were traded on the silk road?
What is the silk road? What valuable products were traded on the silk road?
What is the silk road? What valuable products were traded on the silk road?
What is the silk road? What valuable products were traded on the silk road?
What is the silk road? What valuable products were traded on the silk road?
What is the silk road? What valuable products were traded on the silk road?
What is the silk road? What valuable products were traded on the silk road?
What is the silk road? What valuable products were traded on the silk road?