I want to get the public address from a private key, which I know is feasible. How could I do so in using Python web3 library?
My attempt so far:
account = web3.eth.accounts.privateKeyToAccount(str(PrivateKey))
print(account.address)
Error: AttributeError: 'list' object has no attribute 'privateKeyToAccount'