Python if-else Example: Check Average Score
This Snippet is coded by a user inOnline python Compiler. You can see and run this code too.
زبان: python
This simple Python program reads an average score from the user and uses an if-else statement to determine whether the user has passed or failed.
How to use:
- Save the code in a Python file.
- Run the program.
- Enter your average score as an integer.
- The result will be printed.
This is a great example for learning conditional statements and basic input/output in Python.