Python5

Check out the latest posts

Classy Classes With Python Data Classes

Python has well-known data holders. If you need a sequence, you can use a list. If you need an immutable sequence, use a tuple. If you need a homogeneous array, use the array module. If you need a hash table, a dictionary is likely what you want.

How to Generate Fake Data With Python Mimesis

Generating fake data can be a task far beyond the infamous lorem ipsum. Mimesis, as describe by the library authors: "Is a high-performance fake data generator for Python, which provides data for a variety of purposes in a variety of languages." Let's install Mimesis and see...

Working With JSON in Python

The implementation of JSON in Python is small and concise, and you can read its source code (written in Python) at Lib/json [https://github.com/python/cpython/blob/master/Lib/json/__init__.py]. Although similar looking, Python Dictionaries and JSON are quite different. Dictionaries are high-level Python Objects, while...

Changing the Default Debugger in Python

Python comes with a built in debugger called pdb. You drop the line below at any part or your code, and a debugger will show up: import pdb; pdb.set_trace() Python 3.7 introduced the debugger() keyword, allowing you to simplify the code above and initiate a debugger with...

You’ve successfully subscribed to Writing Codes
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.