Beginner here learning python - why are the '+' signs necessary in this piece of code?

前端 未结 0 801
南笙
南笙 2020-12-21 05:08

In this code:

print(\'My name is\')
for i in range(5):
    print(\'Jimmy Five Times (\' + str(i) + \')\')

With this output:

My         


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