Skip to content

ShiriCodes/customizable-arrowhead-graphic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎯 Customizable Arrowhead Graphic

Simple Python program for creating a custom arrowhead graphic in the terminal/console.


Features ✨

  • 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.

How to Run ▢️

  1. Make sure you have Python installed.
  2. Download or clone this repository.
  3. Run the program in the terminal:
python arrowhead_graphic.py

Example πŸ–₯

Please 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.

Notes πŸ“

This project started as an online Python course exercise, but has been refined to demonstrate clean coding practices and modular design.

Key Highlights

  • βœ… Modular code with reusable functions for better maintainability.
  • βœ… Robust input validation and user-friendly error messages.
  • βœ… Controlled program flow using loops and function composition.

Skills Demonstrated / Learned

  • 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.

About

Simple Python program for creating a custom arrowhead graphic.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages