Why does Python add a whitespace after printing int then string?

前端 未结 0 1078
难免孤独
难免孤独 2020-12-20 14:07

This is my code:

num = input(\'Amount of numbers:\')
num = int(num)
for x in range(1, num + 1):
    if x == 1:
        print(\'1st\')
    elif x == 2:
                


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题