Manipulating the flow of how your code runs is the major part of coding and learning to think in code. We'll experience turning logic into useful work by automatically reading all of Shakespeare, and by setting Python up to give you a call on the phone. In technical terms, the parts of Python you will learn are for loops, list comprehensions, and conditional statements, while at a higher level we'll get a lot on code style and other common ideas and practices that surround the specifics of how to code.
Class Deals by MOOC List - Click here and see Coursera's Active Discounts, Deals, and Promo Codes.
Course 3 of 4 in the Python Basics for Online Research Specialization.
What You Will Learn
- Learn how to play faster and looser and more casual with code, skimming and copying code from the Internet.
- Discuss code flow and the order that your computer reads the code you write. This introduces us to a whole other level of thinking in code.
- Logic can be harnessed to do useful stuff. We'll make it concrete by performing tasks like building an anagram finder.
- Apply Python by robocall and spam text yourself through the Twilio API.
Syllabus
WEEK 1
Reading all of Shakespeare in an Instant
To demonstrate the power of Python, you'll download and automatically read the complete works of William Shakespeare, toward finding his longest and strangest words. In this module, you'll also learn how to play faster and looser and more casual with code, skimming and copying code from the Internet. Let's get started!
WEEK 2
The Flow of Your Python Code
Code flow is the order that your computer reads the code you write. It's usually straightforward, from left to right, top to bottom, but the more we play with logic, the funnier the flow of code through the page. This introduces us to a whole other level of thinking in code.
WEEK 3
Code Flow and Logic
It can be hard to imagine at first how logic can be harnessed to do useful stuff. In this module we make it concrete by performing wordy little tasks like building an anagram finder.
WEEK 4
Course Summary & Honors: Interactive Demo
In the honor's section of this module, you will robocall and spam text yourself through the Twilio API in Python. Twilio is what companies use to automate phone calls and texting.