My code currently is:
s = int(raw_input("Enter width: "))
i=0
y=0
while i < (s+1):
if i != 0:
print(" "*((s)-y))+(i*'* ') + (" "*((s)-y))
i += 1
y += 1
I am attempting to submit this code to a challenge website and they are saying that the code is wrong as it does not meet up to their requirements.
This is the error message that they are stating:

Can you guys please help me 🙂 ?
Thanks!
Looking at the error message from the website, it looks like they don’t want you to have the trailing whitespace, although that’s pretty hard to tell. You can test that easily by:
to
or