In this video thread you will find 8 #python videos explaining the basics in python for beginners!
Every video is about 100 seconds :)
quick disclaimer it's obviously not covering everything about python ;)
1/8 Variables
Variables is a method to store information: #Developer
2/8 Lists
Lists is a type of variable. Lists allow you to store multiple pieces of information individually: #100DaysOfCode#100DaysOfPython
3/8 A βfor loopβ or looping allows you to perform the same action for multiple items in a list or group of items: #100daysofcoding#100daysofcodechallenge
4/8 A Tuple contains multiple items like a list.
The big difference is that a Tuple is immutable.
Which basically means you canβt change the values in a tuple
Unlike a list which is mutable or changeable
7/8 The while loop is like the for loop, but works slightly different
The for loop executes a piece of code IF the condition is valid
The while loop continues the loop as long as a condition is valid
Web3 py enables you to interact with the Ethereum chain using python!
Let me show how to use it π
First setup your develop environment.
We need a virtual environment and install the web3 py in it.
A virtual environment is a safe isolated environment, where you can develop and install python libraries, without affecting your pc if something goes wrong.
Create a virtual environment by typing this in the terminal:
python3 -m venv ./myenv
To activate the virtual environment, type this in the folder where you see the virtual environment. I called mine 'myv':
source ./myenv/bin/activate
A thread 𧡠explaining the code and steps we need to take.
LET'S GO
Now go and code some Python
Minting an nft with the Python sdk developed by @thirdweb_ requires a couple of steps.
We need to create a project in the dashboard and create an NFT module inside our project. We also need to connect a wallet. So if you don't have one, sign up with MetaMask or CoinWallet.
For the first part we need to take some steps in the dashboard at thirdweb.com/dashboard
Right now these steps are not in the Python sdk yet, but the team @thirdweb_ is working hard to get it all in the SDK.
If you want early access to the thirdweb go to thirdweb.com