Skip to content

Commit 3995e4e

Browse files
authored
Update Main file.md
1 parent a836e2f commit 3995e4e

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

Weather Report App/Main file.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
1631
import random
1732
import time
1833
@@ -64,7 +79,7 @@ def display_weather(report):
6479
6580
6681
def 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
89104
if __name__ == "__main__":
90105
main()
106+
91107
```

0 commit comments

Comments
 (0)