Check out these lesser-known Python features

Check out these lesser-known Python features


When I learn about a new feature in Python or I notice that a few others are unaware of that feature, I make a note of it. Over the last few weeks, there have been a few interesting features that I myself recently learned about. Here is a quick look at these features, and a rundown of each. [Read: A look at the best new features in Python 3.9] divmod This is a very useful function. The divmod() function performs a modulus division % on two numbers, then returns both the quotient and remainder. For example: divmod(5, 2) [Out]: (2,…

This story continues at The Next Web
  1. No comment added yet!
  2. Leave Your Comment

    Your email address will not be published. Required fields are marked *

AtSign Innovations