Homework Hacks Write an algorithm in python that uses a function to sort 4 numbers from lowest to highest. What are 3 benefits and 1 negative of using a simulation Think of social media platforms that you go on. What is an aspect of one of those platforms that uses an algorithm to improve their feature and usability?

# Problem 1
numbers=[1,2,6,5]
numbers.sort()
print(numbers, "here are the sorted numbers")


Problem 2

3 Benifits of using a simulation is - Saves money - Effecient - Less Risky

Problem 3

  • Youtube uses an algorithim that recommends possible next videos you can watch and hooks you into the website. It improves the site overall, and helps people watch more entertainig content.

Simulations notes

Simulations work towards simulating real-world applications for specific purposes and to simply real-world occurrneces and programs. They often are less risky as if you implement something that doesn’t work and it fails then it will cause a huge loss of money. It is also effecient since it allos you to easily and quickly test your application and simulate it to see if its ready to publish.