So I am connecting to an RPC cloud-node and trying to get the latest block from the Ethereum blockchain, along with all the block details and have written some code in python using web3.py. I have the code ready and according to the official doc https://web3py.readthedocs.io/en/v5/troubleshooting.html, I am able to setup a virtual environment too. I only want to understand how to add environment variables and then revoke them in my code. As far as I understand I will have to import os and then create a file with .env and type
username=xyz
key=abc
endpoint="example.com"
Is that it?