This course introduces the basics of Python 3, including conditional execution and iteration as control structures, and strings and lists as data structures. You'll program an on-screen Turtle to draw pretty pictures. You'll also learn to draw reference diagrams as a way to reason about program executions, which will help to build up your debugging skills. The course has no prerequisites. It will cover Chapters 1-9 of the textbook "Fundamentals of Python Programming," which is the accompanying text (optional and free) for this course.
The course is for you if you're a newcomer to Python programming, if you need a refresher on Python basics, or if you may have had some exposure to Python programming but want a more in-depth exposition and vocabulary for describing and reasoning about programs.
This is the first of five courses in the Python 3 Programming Specialization.

審閱

PY

This course is very good for beginners. The content and flow of the course is amazing. online practice tool to run our codes online without installing any software makes is even more user friendly.

RS

Jun 03, 2020

Filled StarFilled StarFilled StarFilled StarFilled Star

Amazing course. The ActiveCode and CodeLens helped me a lot with the problems in Python. The concepts were explained very well and I developed a great liking to Python! I can't wait to learn more!

從本節課中

Sequences and Iteration

In week two you will use the lectures and the Runestone textbook to understand the basics of a few python data types - lists, strings, tuples - as well as a control structure - for loops. By the end of this week, you will be able to write more complex programs that create drawings by incorporating for loops. Finally, we will present the basics of an accumulation pattern to you, which will be expanded on in each week for the rest of the course.

教學方

Paul Resnick

Steve Oney

Jaclyn Cohen

腳本

Welcome back. Sometimes, you'll want to change an object after you've created it. You create a list, I'm going to keep adding items onto the end of the list. Create a turtle, change it's pen color. There are two ways to change the value of an object after you've created it. One, you can make a modified copy of the object. And the other is to modify the original. We'll call that mutation, and it's useful but sometimes confusing. So today's lesson; How mutation of existing objects works, recognizing the potential confusion that that can cause. At the end of today's lesson, you should be able to identify whether an object is mutable or immutable. You should be able to identify whether a method mutates an object or creates a modified copy of it. And you should be able to recognize when two different variables are aliases for the same object, and predict whether an operation on one of those variables is going to cause an impact on the contents of the other one.