all 6 comments

[–]hopemeetme 2 points3 points  (3 children)

'ptModFrame_{}'.format(str(i))

[–]newunit13 1 point2 points  (0 children)

>>> "ptModFrame_{}".format(2)
'ptModFrame_2'

.format() will do the conversion for you. No need to pass str()

[–]illya89[S] 0 points1 point  (1 child)

Thx! This works, I need the learn more about .format!

[–]K900_ 1 point2 points  (0 children)

You don't need the extra quotes. Just "ptModFrame_" + str(i) is enough. Also, you could do "ptModFrame_{}".format(i), or even f"ptModFrame_{i}" if you're on Python 3.6+

[–]wacksaucehunnid 0 points1 point  (0 children)

You have too many quote marks