Jan-25-2021, 06:37 PM
I'm just starting to learn python and I'm using a textbook to learn. For demonstrating for loops the book used this bit of code:
print('My name is') for i in range(5): print('Jimmy Five Times (' + str(i) + ')')I understand it for the most part except for the + operators in front of and behind of str(i). I know what they are, but for some reason I'm having a hard time figuring out why they are both needed in that bit of code. The textbook isn't explaining it.