We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0743fce commit 78942e7Copy full SHA for 78942e7
1 file changed
Day-05/README.md
@@ -0,0 +1,10 @@
1
+Environment variables are a fundamental way to configure applications without hardcoding sensitive or environment-specific values.
2
+Here's a comprehensive guide to working with environment variables in Python.
3
+
4
+Linux/macOS:
5
+export DB_HOST="localhost"
6
7
+import os
8
9
+# Simple get with optional default
10
+api_key = os.getenv('API_KEY', 'default-key')
0 commit comments