Alphaville (1965)
python programing?
Write a function readFile that reads the contents of the file movies.txt & puts all the movies in the file into a list of movies. The function should return None if the file is empty and print an error message if the file cannot be found. Show tests of this function with a non-existant file, an empty file, and the movies.txt file.
Note: to determine if a file exists, import the os library and use the function os.path.exists(filename). This function returns True if the filename given exists and False otherwise.
contents of the file movies.txt
Dark City
1998
Alex Proyas
Zulu
1964
Cy Endfield
I Am Legend
2007
Francis Lawrence
The Omega Man
1971
Boris Sagal
The Last Man On Earth
1964
Ubaldo Ragona
Dellamorte Dellamore
1994
Michele Soavi
Alphaville
1965
Jean-Luc Godard
Stardust
2007
Matthew Vaughn
Juno
2007
Jason Reitman
The Darjeeling Limited
2007
Wes Anderson
Broken Flowers
2005
Jim Jarmusch
Is this actually for you or school? I dont mind helping someone with a problem but this sounds suspiciously like a homework assignment (especially the “Note”)….. and I’m not gonna do your homework for you.
If its homework, try http://www.python.org/ they’ve got all the documentation you could ever need and you’ll be able to figure out how to do whatever you want if you take the time to read and learn.
Alphaville (1965) – Interview scene
|
|
Alphaville (The Criterion Collection)
$29.95 Special agent Lemmy Caution is sent across space to the city of Alphaville where he must neutralize the scientist who runs the supercomputer which has erased all words of emotion from the dictionary.Genre: Foreign Film - FrenchRating: UNRelease Date: 20-OCT-1998Media Type: DVD... |
|
|
Alphaville
$1.99 ... |
|
|
Alphaville (1965): An In-Depth Analysis of a French Sci-Fi Film Noir Masterpiece
Over 9,200 words. A comprehensive guide for the film buffs that focuses on a single classic.The most comprehensive plot analysis of this French masterpiece, with complete dialog from a number of scenes.There are films that are like none other. Chinatown, for example. Or the Godfather. Or the Star Wars. Alphaville, whether you like it or not, is one such unique film. The only true full-blown sci-fi... |

