Home
k0nze
Cancel

Python Course #15: Reading and Writing Files

So far, you can store data within the variables of a program; however, when the program ends, this data is gone. And when you start the program again, all the data you want to work with has to be e...

What is an NFT? A Computer Scientist's Perspective

NFTs have been all the rage for some time now. Twitter just introduced an NFT profile pictures where you can set your Twitter profile picture to an image that is “linked” to an NFT you own. But wha...

Python Course #14: User Input

Now that you know how to use for and while loops in Python, you can start getting input from outside of your program. In this article, you will learn how to capture a user’s input and build a small...

Python Course #13: Loops

Up until now, the control flow of your programs was only from top to bottom. However, when writing more complex programs, it is often necessary to execute a specific piece of code several times in ...

Change Windows 10/11 Display Resolution with a Python System Tray Application

Suppose you have to change your display resolution reasonably often. In that case, it can be a bit tiring to open the Windows display settings, choose the preferred resolution and confirm that you ...

Python Course #12: Pass by Assignment, Copy, Reference, and None

Now that the you know what mutable (e.g. lists, sets and dictionaries) and immutable data types (e.g. tuples) are it is important to talk about copies, references and None. Python Pass by Assign...

Estimate Gas in Ethereum Transactions with Python web3 and brownie

The Python package brownie does not offer a built-in function to estimate the gas of a transaction calling a smart contract function before broadcasting it. However, together with web3 a gas estima...

Python Course #11: Dictionaries for Complete Beginners (incl. Free Cheat Sheet)

After learning about the data types list, tuple, and set let’s talk about the Python Dictionary (dict). The Python dictionary is an ordered and mutable data type that stores key-value pairs. That m...

Compile and Interact with Solidity Smart Contracts with the Python brownie Package and VSCode

The most commonly used language to interact with Ethereum Smart Contracts is JavaScript. However, JavaScript has some very notable flaws (taken from https://www.destroyallsoftware.com/talks/wat che...

How to Set up a Local Ethereum Network on Windows 11 and Connect MetaMask

Everyone is talking about blockchain, web3, smart contracts, etc., and you probably want to check out how it works and what you can do with it. In this article, you will learn how to set up your ow...