This is a simple Python program that allows the user to input ages and then returns the maximum age entered.
The program stops when the user enters -1.
- The user is asked to enter an age.
- Each entered age is stored in a list.
- If the user enters
-1, the loop stops. - The program prints the maximum age entered.
please enter your age: 23 please enter your age: 41 please enter your age: 17 please enter your age: -1 the maximum age is : 41
- Python 3.x
To run the program, use:
python main.py
---
✍️ Written by [MVdeveloper](https://github.com/Mahdi-Code630)