Method Overriding vs Overloading in Python [+Video]

Method overriding vs overloading in Python—what’s the difference? If you’re short on time—here it is: Method overloading: creating a method that can be called with different arguments such as m() and m(1, 2, 3). Method overriding: overwriting the functionality of a method defined in a parent class. In method overloading, methods in a given class … Read more

5 Brag-Worthy Python Projects

Hacking Alexa’s Voice Recordings After David’s mother passed away, he wanted to hear her voice again. As she used Amazon Alexa, he figured, he could download the voice recordings from the Alexa device. But Amazon didn’t provide an interface for it. Fortunately he found this project online: [Cool Project] Hacking Alexa’s Voice Recordings After following … Read more

A Gentle Introduction to Python’s Time Module

Having looked at the Python date and datetime modules in previous articles, today we’ll take a closer look at the time module and understand how to extract, input, and work with times in our coding. First, I’ll recap on computer time and introduce the time object we’ll be using with the functions we introduce later … Read more

How to Get All Transactions for a BTC Address in Python?

Problem Formulation Given a single Bitcoin address in the form of a stream of characters such as the address of the first “Genesis” block ever created on the Bitcoin blockchain: 12c6DSiU4Rq3P4ZxziKxzrL5LmMBrzjrJX How to get all transactions for this BTC address in a Python script? Solution To get all transactions of a given Bitcoin address, import … Read more

How to Get Binance API Prices in Python at a Precise Time?

Problem Formulation Say, you want to get the current price of a cryptocurrency using Python’s inofficial binance API. How do you do this for a precise point in time? Step 1: Install Python Binance with pip If you haven’t already, install the Python Binance API using the pip package manager. Run pip install python-binance in … Read more