Simple Python program for creating a custom arrowhead graphic in the terminal/console.
- Choose any character for the arrowhead.
- Choose the size (maximum length) of the arrowhead.
- Input validation:
- Positive integers only for size.
- Non-empty character for arrowhead.
- Option to continue creating multiple arrowheads easily.
- Friendly user interface with clear instructions.
- Make sure you have Python installed.
- Download or clone this repository.
- Run the program in the terminal:
python arrowhead_graphic.pyPlease enter desired character: <3
Please enter desired maximum length: 6
<3
<3<3
<3<3<3
<3<3<3<3
<3<3<3<3<3
<3<3<3<3<3<3
<3<3<3<3<3
<3<3<3<3
<3<3<3
<3<3
<3
Hope you've enjoyed your custom arrowhead.
Please enter 1 if you would like to create another arrowhead,
and 0 if you would like to leave: 0
Thanks for playing! Goodbye.
This project started as an online Python course exercise, but has been refined to demonstrate clean coding practices and modular design.
- β Modular code with reusable functions for better maintainability.
- β Robust input validation and user-friendly error messages.
- β Controlled program flow using loops and function composition.
- Input validation and handling unexpected user input.
- Writing modular and reusable code (DRY principles).
- Loop control and program flow management.
- Designing user-friendly CLI programs.