Pronounced the maa-juh-luhs operator. % gives you the integer remainder when dividing 2 integers. You can use it to get every 2nd or 3rd number by:
[x for x in range(20) if x % 3 == 0]
On this page of the site you can watch the video online % (modulus) operator in Python 🐍 with a duration of hours minute second in good quality, which was uploaded by the user ModernPython 09 January 2023, share the link with friends and acquaintances, this video has already been watched 5,877 times on youtube and it was liked by 58 viewers. Enjoy your viewing!