title: Python Web3: How to get an address from a private key?
body: <p>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?</p>
  <p>My attempt so far:</p>
  <p><code>account = web3.eth.accounts.privateKeyToAccount(str(PrivateKey))</code></p>
  <p><code>print(account.address)</code></p>
  <p><code>Error: AttributeError: 'list' object has no attribute 'privateKeyToAccount'</code></p>