Home
k0nze
Cancel

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...

Python Course #10: Sets for Complete Beginners (incl. Free Cheat Sheet)

The next data type on the list is the Python set. The Python set can, such as the tuple (Python Course #9: Tuples) and the list (Python Course #8: Lists), store multiple values, however, a Python s...

Python Course #9: Tuples for Complete Beginners (incl. Free Cheat Sheet)

In the Python Course #8 you learned everything about Python list, list slicing, and all the list functions that Python provides. In this article, you will learn about another sequential data type, ...

Python Course #8: Lists, List Slicing, and all List Functions (incl. Free Cheat Sheet)

In this article, you will learn about the sequential data type list. In the first article on data types you have seen the primitive data types bool, int, float and str. While str is also a sequenti...