noob question. I need to add a space after I print the triangle char.
triangle_char = input('Enter a character:\n') triangle_height = int(input('Enter triangle height:\n')) i = 0 while i <= triangle_height: print(triangle_char * i ) i += 1
https://stackoverflow.com/questions/66792474/how-to-add-a-space-after-printing-an-input March 25, 2021 at 11:05AM
没有评论:
发表评论