Created
January 31, 2016 11:11
-
-
Save sivabudh/442f8cd20158c19bc34f to your computer and use it in GitHub Desktop.
Random coding to get movie titles for James...Lol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Assuming that we are in the directory with movie files | |
movie_tiles = [movie_title.replace('The ', '') for movie_title in listdir()] | |
outfile = open('/Users/Pac/Desktop/movies.txt', 'w') | |
outfile.write('\n'.join(movie_titles) | |
outfile.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment