lista = [1, 56, 234, 123, 99, 2, 12333, 984, 23]
menor = min(lista)
mayor = max(lista)

print(menor, mayor)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: