Home>

I'm using Python.
I want to read text files with numbered file names such as name10.txt to name19.txt in the order of 10, 11, 12 ... The code I thought of was as follows.

for i in range (10,20):
    f = open ('name' str (i)'.txt', r)


I got an error in the notation of the file name.

Trends