{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

cps6-111108 - • String – ‘word’ “this is a...

Info icon This preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CompSci 6 Introduction to Computer Science November 8, 2011 Prof. Rodger
Image of page 1

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

View Full Document Right Arrow Icon
Announcements No reading or RQ Assignment 5 due Thursday New APT out Thursday – one APT Practice Test problems out – will go over on Tues. Nov 15 Prof. Rodger no office hours this week • Today – Finish example from last time – More on sort options – Regular Expressions
Image of page 2
More on sort Import operator – fruit = [(“pear”,5),(“apple”,9)] fruit = sorted(fruit) • fruit.sort() OR fruit = sorted(fruit) – arguments • key=itemgetter(0) • reverse=True
Image of page 3

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

View Full Document Right Arrow Icon