# Python Modulo: Using the % Operator (Summary)

At first glance, the Python modulo operator may not grab your attention. Yet, as you’ve seen, there’s so much to this humble operator. From checking for even numbers to encrypting text with ciphers, you’ve seen many different uses for the modulo operator.

In this course, you’ve learned how to:

• Use the modulo operator with `int`, `float`, `math.fmod()`, `divmod()`, and `decimal.Decimal`
• Calculate the results of a modulo operation
• Solve real-world problems using the modulo operator
• Override `.__mod__()` in your own classes to use them with the modulo operator

Here are additional resources about python expressions, floating point arithmetic, cryptography, and more:
{"ft_lang_label":"__label__en","ft_lang_prob":0.8432788,"math_prob":0.8566693,"size":1086,"snap":"2022-27-2022-33","text_gpt3_token_len":232,"char_repetition_ratio":0.13585952,"word_repetition_ratio":0.0,"special_character_ratio":0.213628,"punctuation_ratio":0.12562814,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96621644,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-04T02:32:42Z\",\"WARC-Record-ID\":\"<urn:uuid:0ff1b8c3-55cf-4346-8201-5baa72855f57>\",\"Content-Length\":\"40258\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:74ea4dd9-c332-4cef-bb19-6e64fa7fd501>\",\"WARC-Concurrent-To\":\"<urn:uuid:6eafc0b8-8d40-4a11-ac46-9e88711de8ab>\",\"WARC-IP-Address\":\"104.22.17.171\",\"WARC-Target-URI\":\"https://realpython.com/lessons/python-modulo-summary/\",\"WARC-Payload-Digest\":\"sha1:SLUD5IMID23FBHSGZNUCWSW3LOBLCKZC\",\"WARC-Block-Digest\":\"sha1:4T6IVDCRW6MK2NCAASWT2FMNUDI2N7MO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104293758.72_warc_CC-MAIN-20220704015700-20220704045700-00085.warc.gz\"}"}