The following two examples show equivalent empty classes in Python.
They both subclass `object`:
You can verify that a class is a subclass of a specific class using Python's built-in `issubclass()`.
Here are the built-in methods that come with the `object` class, although some of them may not do anything or you will need to override them yourselves.
• • •
Missing some Tweet in this thread? You can try to
force a refresh
The `print()` function takes the following arguments:
🐍 *objects - Stuff to print
🐍 sep=' ' - A string to separate object
🐍 end='\n' - A string to end on
🐍 file=sys.stdout - Where to write the data
🐍 flush=False - Whether or not to force flush the stream
Let's look at some examples of using Python's `print()` function:
Blockchain is a super popular topic here on Twitter. While I am not a blockchain developer, I thought it would be fun to put together a short thread on blockchain and #Python
Check it out if you're interested in this topic!
🧵🐍👇
ActiveState is a well-respected #Python company with lots of great content and they have an intro article on blockchain with Python: