mirror of
https://github.com/michivonah/python.git
synced 2025-12-22 20:46:29 +01:00
629 B
629 B
Basics in Python
String functions
Core concepts
Check if execution is in main program
if __name__ == '__main__':
Load modules
import <MODULE_NAME>
from <MODULE_NAME> import <FUNCTION>
Install requirements
Create a file called requirements.txt in the root of the directory and add the required python modules
# requirements.txt
python-dotenv
discord-webhook==1.3.0
Optionally you can ad == to specify the required version of the module
Install the modules with the following command:
pip install --no-cache-dir -r requirements.txt