Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

overflow error

a
andrea (340 points)
3 12 16
in Programmare in Python by (340 points)
Testando con il grade la funzione che comprime le immagini del primo esercizio del 23-01, incorro in questo errore che non riesco a spiegarmi (in particolare solo nel test 3, gli altri due danno ok):

error -> OverflowError
        unsigned byte integer is greater than maximum

qualcuno sa aiutarmi? grazie.
481 views

1 Answer

andrea.sterbini (207920 points)
750 1267 2373
by (208k points)
Devi aver messo un valore maggiore di 255 in un colore