lab7final2 - movie1 = [movie1] movies = movies + movie1...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
def movieReviews (tuples): reviews = tuples organizedList = [] movies = [] rating = [] for i in range (len(reviews)): movie = reviews[i] movie = [movie] organizedList = movie + organizedList organizedList.sort() print (organizedList) for i in organizedList: movie1 = organizedList[0]
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: movie1 = [movie1] movies = movies + movie1 ratings = organizedList[1] ratings = [ratings] rating = ratings + rating print (movies) print(rating) dictionary = {} for i in range (len(movies)): dictionary[movies[i]]= rating[i] print (dictionary)...
View Full Document

This note was uploaded on 04/26/2011 for the course CPS 324 taught by Professor Safa during the Spring '11 term at Dickinson.

Ask a homework question - tutors are online