{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

cps6-111103

# cps6-111103 - "Hungry heart:The river:Born to...

This preview shows pages 1–4. Sign up to view the full content.

CompSci 6 Introduction to Computer Science November 3, 2011 Prof. Rodger

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Announcements • No Reading for next time • Assignment 5 coming out soon! • Today – More on dictionaries – Finish APT
Problem: • Suppose we get data which is a list of strings, each string is the top three songs one student likes in the order 1,2,3. songs = ["Hey Jude:Let it be:Day Tripper", "Let it be:Drive my car:Hey Jude", "I want to hold your hand:Day Tripper:Help!", "Born to run:Thunder road:She's the one",

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: "Hungry heart:The river:Born to run", "The river:Thunder road:Drive my car", "Angie:Start me up:Ruby Tuesday", "Born to run:Angie:Drive my car"] Problem: • What type of dictionary should we build? • Answer questions: – Which is the most popular first place song? – Which is the most popular song (unweighted)? – Which is the most popular song weighted (3 points top song, 2 points 2cd song, 1 point last song)....
View Full Document

{[ snackBarMessage ]}

### Page1 / 4

cps6-111103 - "Hungry heart:The river:Born to...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online