Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a Pine Tree ASCII Art #30

Closed
fevziismailsahin opened this issue Jan 11, 2025 · 0 comments · Fixed by #33
Closed

Generate a Pine Tree ASCII Art #30

fevziismailsahin opened this issue Jan 11, 2025 · 0 comments · Fixed by #33
Assignees

Comments

@fevziismailsahin
Copy link
Member

Write a Python function that generates a customizable pine tree ASCII art. The tree should consist of a foliage section and a trunk section, based on the input parameters provided to the function.

The function should take the following parameters:
1. height (int): The height of the tree foliage.
2. trunk_width (int): The width of the trunk.
3. trunk_height (int): The height of the trunk.

The output should be a string representation of the tree, formatted as ASCII art.
height = 10
trunk_width = 3
trunk_height = 3

Notes:
Make sure to handle edge cases (e.g., invalid inputs like negative numbers or non-integer values).
Do not include extra whitespace or unnecessary characters in the output.

Resources:
Python String Manipulation
How to Create ASCII Art

Input:
height = 10
trunk_width = 3
trunk_height = 3

Output:

Screenshot 2025-01-11 at 12 26 40
@fevziismailsahin fevziismailsahin self-assigned this Jan 11, 2025
@fevziismailsahin fevziismailsahin moved this from TODO to DOING in ET6 Foundations Group 02 Jan 11, 2025
@fevziismailsahin fevziismailsahin moved this from DOING to READY FOR REVIEW in ET6 Foundations Group 02 Jan 11, 2025
@fevziismailsahin fevziismailsahin closed this as completed by moving to READY FOR REVIEW in ET6 Foundations Group 02 Jan 11, 2025
@fevziismailsahin fevziismailsahin linked a pull request Jan 12, 2025 that will close this issue
43 tasks
@fevziismailsahin fevziismailsahin moved this from READY FOR REVIEW to DONE in ET6 Foundations Group 02 Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

1 participant