Python Forum
Print user input into triangle - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Print user input into triangle (/thread-30817.html)



Print user input into triangle - djtjhokie - Nov-07-2020

https://imgur.com/a/J04CGxV

https://imgur.com/a/9xmnoTR

What code is wrong that isn't allowing the triangle to be formed. It adds an extra H when forming the first triangle and then the second it doesn't use the whole string. It doesn't have the full hello sir when starting the 2nd triangle either.


RE: Print user input into triangle - buran - Nov-07-2020

Please, don't post images.
Copy/paste code, error, output, etc. using respective BBCode tags
See BBcode help for more info.