How can I calculate a list modulo a numer in python?

Even though it’s a homework question, you can do it as:

[a%10 for a in l]

Leave a Comment