Print triangle and diamond patterns in Python
Filed under Zycus
The question
Provide Python code to print a triangle pattern, and then modify the code to print a diamond pattern.
No write-up yet. Related questions below have one.
Related Zycus questions
Collected from public candidate posts and coding forums. Updated Nov 2026.