CS3101.3’Python:’Lecture’3’
嚜澧S3101.3
?Python:
?Lecture
?3
?
This
?week
?
?
?
?
?
?
?
Assignment
?3
?
Python
?2
?vs.
?Python
?3
?
Wrapping
?up
?funcBons
?
FuncBonal
?(and
?iteraBve)
?programming
?tools
?
Regular
?expressions
?
News:
?
每 SoluBons
?to
?hw*s
?1,2
?posted
?will
?be
?posted
?to
?
courseworks
?on
?Thurs
?
每 Python
?3.1
?is
?now
?available
?on
?.columbia.edu
?
Assignment
?3
?(ex
?1
?of
?2)
?
Sport
?Recommender
?
? Requirements:
?
每 Write
?a
?script
?which
?
recommends
?a
?sport
?to
?play
?
based
?on
?today*s
?weather
?
每 Retrieve
?the
?current
?
temperature
?using
?URLLIB,
?
Regular
?Expressions,
?and
?a
?web
?
service
?of
?your
?choice
?
每 See:
?
hSp://developer.
weather/
?
?
? Suggested
?output:
?
每 $python
?sport.py
?
?
每 It*s
?36
?degrees,
?you
?should
?ski!
?
Recommended
?web
?service:
?
?
hSp://weather.
forecastrss?w=12761356
?
Assignment
?3
?(ex
?2
?of
?2)
?
News
?Parser
?
? Write
?a
?script
?which
?
retrieves
?Columbia*s
?
webpage
?and
?prints
?only
?
the
?Btles
?of
?the
?news
?
stories
?on
?the
?main
?page
?
? Use
?regular
?expressions
?
and
?string
?operaBons
?
Suggested
?output:
?
? $python
?news.py
?
? Today*s
?stories
?are:
?
? 1.
?Alumns
?Judd
?Gregg#.
?
Python
?2
?vs.
?Python
?3
?
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.