Python Modulo in Practice: How to Use the % Operator

I completed two tutorials on Modulo in Python and Modulo in Maths. o First, I completed “Python Modulo in Practice: How to Use the % Operator” basic-level tutorial offered by Real Python. The instructor of the tutorial is Jason Van Schooneveld. Using type hints makes it easier for you to reason about code, find subtle bugs, and maintain a clean architecture. In this tutorial I learned about: • Modulo Operator With int • Modulo Operator With float • Modulo Operator With decimal.Decimal • Modulo Operator With Custom Classes • Modulo Operator With a Negative Operand • Modulo Operator and divmod() • Modulo Operator Precedence • How to Check if a Number Is Even or Odd • How to Run Code at Specific Intervals in a Loop • How to Create Cyclic Iteration • How to Convert Units • How to Determine if a Number Is a Prime Number • How to Implement Ciphers You can find this tutorial at · https://realpython.com/python-modulo-operator/ o Second, I completed a Computer Science module on Cryptography at Khan Academy. In this tutorial I learned about: • Congruence modulo • Congruence relationship • Equivalent relationships • The quotient remainder theorem • Modular addition, substruction, multiplication • Modular exponentiation • Fast modular exponentiation • Modular inverse • The Euclidian Algorithm You can find this tutorial at · https://www.khanacademy.org/computing/computer-science/cryptography/modarithmetic/a/fast-modular-exponentiation · https://github.com/csknk/fast-modular-exponentiation

Our Sidebar

You can put any information here you'd like.

  • Latest Posts
  • Announcements
  • Calendars
  • etc