I'm trying to create a script that will create sequential file names for images in a directory with leading zeros. The current code I'm trying to use is:
####Take a picture.
filename='/home/pi/pictures/'print 'img_{0:05d}'.format(i)'.jpg'
self.shoot(filename=filename)
I'm getting a syntax error when running seen here below. http://prnt.sc/dhpf51
'../pictures/img_{0:05d}.jpg'.format(i)