请帮助解决迭代中的语法错误

Please help to solve syntax error in iteration

我想编写一个代码,如果用户输入 100 并且数字减少 10。100 90 80....0

但是,我遇到了这个问题...

space = int(input("Enter the number : ")) # i will enter 100 here
for i in range(space, 0, -10) :  
    print(i)

SyntaxError: invalid character in identifier

space = int(input("enter input: ")) # cook your dish here
for n in range(space, 0, -10):
    print(n)

以上代码在线ide(在Pyth 3.6)中运行良好,我在identifier 中没有发现任何问题。可能会检查你的缩进,或者你的环境(运行 不同语言编译器中的代码)但即使那样也不应该给出这样的错误。