Python Forum

Full Version: Print user input into triangle
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
Please, don't post images.
Copy/paste code, error, output, etc. using respective BBCode tags
See BBcode help for more info.