Create the Python script using web3 to interact with blockchain.
from web3 import Web3rpc_url ="http://10.0.0.1:8545"private_key ="0x1234..."addr ="0x1234..."contract_addr ="0x1234..."# Connectw3 =Web3(Web3.HTTPProvider(rpc_url))print(w3.is_connected())# Get the latest blockprint(w3.get_block('latest'))# Get the balance of specified addressbalance = w3.eth.get_balance(addr)print(f"Balance is {balance}")