



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Your Name:___________________________________________________
Variables located within a function are local variables. Variables located outside of a function are global variables.
def makeMovie( ): aMovie[ ] for x in range (10): pic= takepicture(ìgrayî) ! add movements here!! aMovies= aMovie + [pic] print ì.î print return aMovie
def playMovie (aMovie): for pic in aMovie: show (pic) wait(.125) myMovie= makeMovie( ) playMovie(myMovie)
def copy(origin, destination): inFile = open(origin, 1. ìrî) outFile = open(destination, 2. ìwî)
fileContents = 3. inFile.read( ) outFile.write( fileContents)
outFile.close( )
def 1. findJpeg( ): folder=pickAFolder( ) files= os.listdir(2. folder) x= for i in files: if i.endswith("3. .jpeg"): P = makePicture(4. files + "/" +i) show(p) wait(.15) if x == 0: print "No source video"