Rain Alert System: Easy Python Project for Kids (2026)
Rain Alert System using Python
The Rain Alert System is a beginner Python project. The computer asks one simple question: “Is it raining?” The student types yes or no. Python checks the answer and gives the correct message. If it is raining, the program reminds us to take an umbrella. If it is not raining, it tells us that an umbrella is not needed.


In simple words: INPUT → THINK/DECIDE → OUTPUT.
Why Are We Doing This Coding?
This project teaches children how a computer makes a decision. Real apps and smart devices also follow this idea.
- A weather app checks weather information and shows an alert.
- A traffic system checks a signal and decides STOP or GO.
- A game checks a player’s action and decides WIN or TRY AGAIN.
- A school app checks attendance and shows PRESENT or ABSENT.
What Will the Student Make?
- A Python program named rain_alert.py.
- A question asking whether it is raining.
- A rain alert when the answer is yes.
- A no-rain alert when the answer is no.
- A helpful message for an invalid answer.
What Does the Coding Mean?
Think of Python as giving instructions to the computer. Each line tells the computer what to do.
| print(“RAIN ALERT SYSTEM”) |
Meaning: print() displays the title on the screen.
| weather = input(“Is it raining? (yes/no): “) |
Meaning: input() asks the user a question. The answer is stored in a variable called weather.
| if weather.lower() == “yes”: |
Meaning: if it checks whether the user’s answer is yes. lower() changes YES, yes, or yes into lowercase, so the program can understand all of them.
| print(“Rain Alert!”) |
Meaning: this message appears when the condition is true.
| elif weather. lower() == “no”: |
Meaning: “elif” means “otherwise, check this condition.” It checks whether the answer is no.
| else: |
Meaning: else runs when the user enters something other than yes or no.
Complete Beginner Code
| print(“RAIN ALERT SYSTEM”) weather = input(“Is it raining? (yes/no): “) if weather.lower() == “yes”: print(“Rain Alert!”) print(“Take an umbrella.”) print(“Be careful on wet roads.”) elif weather. lower() == “no”: print(“No Rain Alert!”) print(“You don’t need an umbrella.”) else: print(“Please enter only yes or no.”) |
Project Flow—How Does It Work?

The computer follows the flow: ask a question → check the answer → show the correct result.
Step-by-Step: Create the Project
- Create a folder named Rain_Alert.
- Open the folder in VS Code.
- Create a new file named rain_alert.py.
- Type the code exactly as shown.
- Save the file using Ctrl + S.
- Run the program.
- Test it with yes, no, and an invalid answer.
- Record a short video showing your code, explanation, and result.
What Should I Explain in My Video?
- Tell the project name: “My project is a Rainin Alert System using Python.”
- Explain the purpose: “It checks whether it is raining and gives an alert.”
- Explain input(): “It gets the user’s answer.”
- Explain the variable weather: “It stores the answer.”
- Explain if and elif: “They check the conditions.”
- Run the program and show the final result clearly.
Result—Whenser Enters YES

Expected result: A rain alert is displayed, and the user is advised to take an umbrella.
Result—Whenser Enters NO

Expected result: No rain alert is displayed.
Invalid Input Result
| RAIN ALERT SYSTEM Is it raining? (yes/no): maybe Please enter only “yes” or “no.” |
This protects the program from unexpected answers and teaches the student to handle different inputs.
Important Python Concepts
| Concept | Easy Meaning |
| print() | Shows information on the screen. |
| input() | Gets information from the user. |
| variable | Stores information, such as the weather answer. |
| if | Checks a condition. |
| elif | Checks another condition. |
| else | Runs when the other conditions are false. |
| .lower() | Changes text to lowercase. |
| == | Checks whether two values are equal. |
| indentation | Spaces that show which lines belong inside a condition. |
Common Mistakes
- Do not write Print()—Python uses lowercase print().
- Do not forget the colon : after if, elif, and else.
- Keep the code inside if/elif/else indented.
- Save the file before running it.
- Make sure the file ends with .py.
- If using input, type yes or no for the basic version.
Test Your Project
| Input | Expected Output | Pass/Fail |
| Yes… | Rain Alert + umbrella message | Pass |
| no | No Rain Alert | Pass |
| maybe | Please enter only “yes” or “no.” | Pass |
Mini Challenge for Kids
- Add a message for heavy rain.
- Ask: “Do you have an umbrella?”
- Add a thunderstorm warning.
- Add a temperature check.
- Change the messages and make your own weather theme.
Optional Enhanced Version – Rain + Temperature
After finishing the basic version, try this slightly harder version.
| print(“WEATHER ALERT SYSTEM“) rain = input(“Is it raining? (yes/no): “) temperature = int(input(“Enter temperature: “)) if rain.lower() == “yes”: print(“Rain Alert!”) print(“Take an umbrella.”) if temperature < 20: print(“It is cold. Wear a jacket.”) else: print(“Stay safe and enjoy your day!”) elif rain. lower() == “no”: print(“No Rain Alert!”) if temperature > 35: print(“It is very hot. Drink plenty of water.”) else: print(“The weather looks comfortable.”) else: print(“Please enter yes or no.” )Sample Output Example 1: WEATHER ALERT SYSTEM Is it raining? (yes/no): yes Enter temperature: 18. Rain Alert! Take an umbrella. It is cold. Wear a jacket. Example 2: WEATHER ALERT SYSTEM Is it raining? (yes/no): no Enter temperature: 38. No Rain Alert! It is very hot. Drink plenty of water. |
Frequently Asked Questions (FAQ)
Q1. What is the Rain Alert System? It is a beginner Python project that checks whether it is raining and displays a suitable message. Q2. What is the purpose of this project? It teaches students how to take input, make decisions, and display output. Q3. Which programming language is used? Python. Q4. What does print() do? It displays information on the screen. Q5. What does input() do? It gets information from the user. Q6. What is the weather variable used for? It stores the user's answer. Q7. Why do we use .lower()? It allows the program to recognize YES, yes, and yes as the same answer. Q8. What does "if" do? It checks a condition. Q9. What does elif do? It checks another condition when the previous condition is false. Q10. What else do you do? It runs when the other conditions are false. Q11. What happens when the user enters yes? The program displays a rain alert and recommends taking an umbrella. Q12. What happens when the user enters no? The program displays a no-rain alert. Q13. What happens with an invalid answer? The program asks the user to enter only yes or no. Q14. What is an error in Python? An error is a problem in the code that prevents Python from working correctly. Q15. What is debugging? Debugging means finding and fixing errors in a program. Q16. What is a SyntaxError? It happens when the code has incorrect syntax, such as a missing colon. Q17. What is an indentation error? It happens when the indentation or spaces are incorrect. Q18. What is a NameError? It happens when Python cannot find a variable or name, often because of a spelling mistake. Q19. How do I know whether my coding is correct? Run the program and test "yes," "no," and an invalid answer. Check whether the output matches the expected result. Q20. What should I do if my code runs but gives the wrong result? Check the conditions and logic. This may be a logic error. Q21. Can I change the messages? Yes. You can create your own weather-themed messages. Q22. Can I add more features? Yes. You can add temperature, thunderstorm alerts, heavy rain, and other weather conditions. Q23. Is this a real weather forecasting system? No. The basic project uses the answer entered by the user. It does not use live weather data. Q24. What is the basic project flow? INPUT → CHECK → DECIDE → OUTPUT
Extra Challenges
CHALLENGE 1: Add Wind Speed Check—If wind > 50 km/h, print ‘Storm Alert!’ Stay indoors.’
CHALLENGE 2: Add Humidity—If humidity > 80% and rain == yes, print ‘High humidity, chance of heavy rain.’
CHALLENGE 3: Add 4th Condition—If temperature < 5, print ‘Freezing Cold! Snow Alert!’
CHALLENGE 4: Loop the Program—Use while True to ask again until the user types ‘exit.’
CHALLENGE 5: Voice Alert—Use the pyttsx3 library to speak the weather alert.
CHALLENGE 6: Time Check—If it is raining at night, print ‘Be careful, the road is slippery at night.’
CODING EXTRA IDEAS—Level Wise
LEVEL 1
print(“WEATHER ALERT SYSTEM”)
rain = input(“Is it raining? (yes/no): “).lower()
temp = int(input(“Enter temperature: “))
if rain == “yes”:
print(“Rain Alert! Take an umbrella.”)
if temp < 20:
print(“Cold! Wear jacket and sweater.”)
elif temp > 30:
print(“Hot and Rainy—Humid Weather!”)
else:
print(“Enjoy the rain!”)
else:
print(“No Rain!”)
if temp > 35:
print(“Very Hot! Drink water”)
else:
print(“Nice weather to play outside!”)
LEVEL 2
print(“ADVANCED WEATHER ALERT”)
rain = input(“Is it raining? (yes/no): “).lower()
temp = int(input(“Enter temperature: “))
wind = int(input(“Enter wind speed km/h: “))
humidity = int(input(“Enter humidity %: “))
if rain == “yes”:
print(“Rain Alert!”)
if temp < 5:
print(“SNOW ALERT! Freezing cold!”)
elif temp < 20:
print(“Cold + Rain. Wear jacket.”)
if wind > 50:
print(“STORM WARNING! Stay indoors.”)
if humidity > 80:
print(“High humidity—Heavy rain coming!”)
elif rain == “no”:
print(“No Rain”)
if temp > 40:
print(“HEATWAVE! Don’t go outside!”)
elif temp > 35:
print(“Hot! Drink 3L water.”)
else:
print(“Comfortable day”)
else:
print(“Please type only yes or no.”)
Keywords
Python, Rain Alert System, Weather Alert, User Input, Output, Variable, if, elif, else, Conditional Statement, String, .lower(), Decision Making, Debugging, Error Handling, Beginner Python Project
Final Learning Outcome
By completing this project, students will learn how to:
- Take user input using input()
-
- Store information using variables
- Display output using print()
- Use if, elif, and else
- Compare values using ==
- Use .lower()
- Understand indentation
- Test different inputs
- Identify common Python errors
- Debug and fix coding mistakes
- Build a simple decision-making program
Rain Alert System Using Python • Kids Project Guide











