File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,6 +13,21 @@ Concepts covered:
1313- Functions and modular programming
1414
1515```
16+ """
17+ Weather Reporter (Simulated)
18+ -----------------------------------------
19+ A simple Python project that gives a mock weather report
20+ for a city entered by the user.
21+
22+ This version doesn’t use any API — it randomly generates temperature,
23+ humidity, and conditions for demonstration and practice.
24+
25+ Concepts covered:
26+ - Random number generation
27+ - Lists and string formatting
28+ - Functions and modular programming
29+ """
30+
1631import random
1732import time
1833
@@ -64,7 +79,7 @@ def display_weather(report):
6479
6580
6681def main():
67- Main function to handle user input and display weather info.
82+ """ Main function to handle user input and display weather info."""
6883 print("Welcome to the Weather Reporter!")
6984 print("Type 'exit' anytime to quit.\n")
7085
@@ -88,4 +103,5 @@ def main():
88103
89104if __name__ == "__main__":
90105 main()
106+
91107```
You can’t perform that action at this time.
0 commit comments