I submitted my code for Mario More in Python. Although it works properly by my own checks it gives me a 6/9 when submitted.
from cs50 import get_int
def main():
n = height()
for i in range(n):
#Print left column
for j in range(n):
if (i + j < n - 1):
print(" ", end="")
else:
print("#", end="")
#Print spaces
for j in range(2):
print(" ", end="")
#Print right column
for j in range(n):
if (j + n - i <= n):
print("#", end="")
else:
print(" ", end="")
print()
#Prompt user for positive int between 1 and 8
def height():
while True:
n = get_int("Height\n")
if n >= 1 and n <= 8:
break
return n
main()