[Instructor] Let's wrap up this chapter…by taking a look at a few examples…of how to work with calendars in Python.…Python's library provides a couple of useful utilities…for working with calendars in both text and HTML formats.…Again, this is going to come up from time to time.…You'll have to work, not just with dates and times,…you'll have to work with calendars.…Let's open up calendars underscore start dot py,…and in order to use the calendar module in a Python app,…you first need to import that module.…So let's go ahead and do that.…So this statement will import all of the various classes…from the calendar module into my app.…
Let's start off by just creating a plain text calendar,…and to do that, I'm going to use the text calendar class.…So I'll write some code for this,…and I'll give it the calendar dot Sunday…to indicate which day of the week I want it to start on,…and then I'm going to create a variable named st.…And I'm going to ask the calendar class to format…a month for me, and I need to give it the specifics.…
- Installing Python
- Choosing an editor or IDE
- Working with variables and expressions
- Writing loops
- Using the date, time, and datetime classes
- Reading and writing files
- Fetching internet data
- Parsing and processing HTML
Skill Level Beginner
Programming Foundations: Design Patternswith Elisabeth Robson2h 19m Intermediate
1. Getting Started
2. Python Basics
3. Working with Dates and Time
4. Working with Files
5. Working with Web Data
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.