p="/Users/rama/Desktop/lowermodels" lowerCount=0 for i in range(19): lowermodel[i]= pickle.load(open('/Users/rama/Desktop/lowermodels{lowerCount}.sav', 'rb')) lowerCount= lowerCount 1
CodePudding user response:
Looks like you forgot to put an f infront of your f-string
p="/Users/rama/Desktop/lowermodels"
lowerCount=0
for i in range(19):
lowermodel[i]= pickle.load(open(f'/Users/rama/Desktop/lowermodels{lowerCount}.sav', 'rb'))
lowerCount= lowerCount 1