My code is getting 9/9 on the check. Visually it seems fine as well. There doesn't seem to be any preceding or trailing empty spaces. The score, however, is 90%. Any help in identifying the mistake would be greatly appreciated. Here's the code:
from cs50 import get_int
while True:
height = get_int("Height: ")
if 1 <= height <= 8:
for i in range(height):
print(" " * (height - (i + 1)), "#" * (i + 1), sep="") #https://stackoverflow.com/questions/12700558/print-without-space-in-python-3
break
Edit for other readers: Please see DinoCoderSaurus' response. Here's a screenshot from style50.