You've sent ethers using a Python script with the web3 library in Ganache and the Rinkeby network. Now, let's create a script to interact with a smart contract. But before doing that, you need to learn how to launch a smart contract with geth and a Python script with the web3 library. Previously, in Chapter 3, Implementing Smart Contracts Using Vyper, you launched a smart contract using Truffle.
In the next section, we are going to connect to a smart contract with web3. Here's how to deploy a smart contract to the Rinkeby blockchain:
$ ./geth --rinkeby --verbosity 0 console
In the geth console, list all of your accounts with...