課程信息
4.9
286 個評分
41 個審閱

第 2 門課程(共 5 門)

100% 在線

立即開始,按照自己的計劃學習。

可靈活調整截止日期

根據您的日程表重置截止日期。

初級

完成時間大約為17 小時

建議:12 hours/week...

英語(English)

字幕:英語(English), 越南語

第 2 門課程(共 5 門)

100% 在線

立即開始,按照自己的計劃學習。

可靈活調整截止日期

根據您的日程表重置截止日期。

初級

完成時間大約為17 小時

建議:12 hours/week...

英語(English)

字幕:英語(English), 越南語

教學大綱 - 您將從這門課程中學到什麼

1
完成時間為 6 小時

Files and CSV Output

In week one the video lectures and the Runestone textbook will introduce you to the idea of incorporating files into your programs as an additional source of data. You will learn how to read from a file, write to a file, and how to work with the .csv data format....
14 個視頻 (總計 88 分鐘), 14 個閱讀材料, 3 個測驗
14 個視頻
Welcome to Python Functions, Files, and Dictionaries2分鐘
How to Use the Interactive Textbook14分鐘
Introduction: Files1分鐘
Reading a File9分鐘
Finding a File in Your File System6分鐘
Writing to a File7分鐘
Using With to Open Files5分鐘
Conclusion: Files1分鐘
Introduction: .csv Format3分鐘
Reading a .csv File8分鐘
Writing Data to a .csv File10分鐘
Tips on File Naming2分鐘
Conclusion: .csv Format1分鐘
14 個閱讀材料
Syllabus10分鐘
Help Us Learn More About You!10分鐘
Introduction: Working with Data Files10分鐘
Reading a File10分鐘
Alternative File Reading Methods10分鐘
Iterating Over Lines in a File10分鐘
Finding a File in your File System10分鐘
Writing to a File10分鐘
Using With to Open Files10分鐘
Recipe for Reading and Processing a File10分鐘
CSV Format10分鐘
Reading a .csv File10分鐘
Writing Data to a .csv File10分鐘
Tips on Handling Files10分鐘
1 個練習
Optional - What Did You Use to Practice This Week?4分鐘
2
完成時間為 6 小時

Dictionaries and Dictionary Accumulation

In week two the video lectures and the Runestone textbook will focus on a new data type, dictionaries. You will be introduced to the mechanics of dictionaries and then get practice using them in accumulation patterns, both to build a dictionary using the pattern as well as find the best, or worst, result using the pattern....
10 個視頻 (總計 77 分鐘), 9 個閱讀材料, 4 個測驗
10 個視頻
Demonstration: Dictionary Basics4分鐘
Dictionary Operations7分鐘
Dictionary Methods12分鐘
Demonstration: Dictionary Methods3分鐘
Aliasing and Copying with Dictionaries3分鐘
Dictionary Accumulation13分鐘
Demonstration: Dictionary Accumulation5分鐘
Accumulating Results From a Dictionary12分鐘
Demonstration: Accumulating Results From a Dictionary7分鐘
9 個閱讀材料
Introduction: Dictionary Learning Goals10分鐘
Introduction: Dictionaries10分鐘
Dictionary Operations10分鐘
Dictionary Methods10分鐘
Aliasing and Copying10分鐘
Introduction: Accumulating Multiple Results in a Dictionary10分鐘
Accumulating Results From a Dictionary10分鐘
Accumulating the Best Key10分鐘
When to Use a Dictionary10分鐘
1 個練習
Optional - What Did You Use to Practice This Week?4分鐘
3
完成時間為 8 小時

Functions and Tuples

In week three you will be introduced to the construction of functions. Up to this point, you have used functions in the programs before, but have not had a chance to write your own functions, including how to define a function, how to incorporate parameters, how to return data from a function, the local or global scope of variables, and potential side effects that could occur from function execution. Finally, we look at tuples more in depth, and how automatic packing and unpacking of tuples can be used in functions and in for loops....
16 個視頻 (總計 81 分鐘), 19 個閱讀材料, 4 個測驗
16 個視頻
Defining Functions5分鐘
Positional Parameter Passing6分鐘
Returning Values12分鐘
Way of the Programmer: Decoding a Function4分鐘
A Function that Accumulates8分鐘
Conclusion: Functions59
Introduction: Variable Scoping and Side Effects48
Local and Global Variables9分鐘
Function Composition10分鐘
Mutable Objects and Side Effects5分鐘
Conclusion: Variable Scoping and Side Effects1分鐘
Introduction: Tuple Packing and Unpacking40
Tuple Packing3分鐘
Tuple Assignment with Unpacking8分鐘
Conclusion: Tuple Packing and Unpacking39
19 個閱讀材料
Introduction to Functions10分鐘
Function Definition10分鐘
Function Invocation10分鐘
Function Parameters10分鐘
Returning a Value from a Function10分鐘
Decoding a Function10分鐘
A Function that Accumulates10分鐘
Local Variables10分鐘
Global Variables10分鐘
Function Composition10分鐘
Flow of Execution Summary10分鐘
Print vs. Return10分鐘
Passing Mutable Objects10分鐘
Side Effects10分鐘
Introduction10分鐘
Tuple Packing10分鐘
Tuples as Return Values10分鐘
Tuple Assignment with Unpacking10分鐘
Unpacking Into Iterator Variables10分鐘
1 個練習
Optional - What Did You Use to Practice This Week?4分鐘
4
完成時間為 6 小時

More Iteration and Advanced Functions

In week four the video lectures and the Runestone textbook will outline a more advanced iteration mechanism, the while loop. You will be introduced to using it when getting feedback from users, as well as applying it to the turtle module to draw images. Additionally, you will also be exposed to more advanced function concepts such as the idea of parameters being optional, not required, and anonymous functions using lambda....
7 個視頻 (總計 49 分鐘), 10 個閱讀材料, 4 個測驗
7 個視頻
The Listener Loop7分鐘
Break and Continue5分鐘
Way of the Programmer: Infinite Loops4分鐘
Optional Parameters4分鐘
Keyword Parameters7分鐘
Anonymous Functions with Lambda Expressions5分鐘
10 個閱讀材料
Introduction10分鐘
The While Statement10分鐘
The Listener Loop10分鐘
Randomly Walking Turtles10分鐘
Break and Continue10分鐘
Infinite Loops10分鐘
Introduction: Optional Parameters10分鐘
Keyword Parameters10分鐘
Anonymous Function with Lambda Expressions10分鐘
Programming With Style10分鐘
1 個練習
Optional - What Did You Use to Practice This Week?4分鐘
4.9
41 個審閱Chevron Right

熱門審閱

創建者 MNJan 5th 2019

This is the course to do because it makes use of spaced repetition learning - scientifically proven to be the best for recollection.

創建者 AFApr 4th 2019

Very good course where I learned lots about dictionaries, tuples, functions and made my first project in Python.

講師

Avatar

Paul Resnick

Michael D. Cohen Collegiate Professor
School of Information
Avatar

Steve Oney

Assistant Professor
School of Information
Avatar

Jaclyn Cohen

Lecturer
School of Information

關於 密歇根大学

The mission of the University of Michigan is to serve the people of Michigan and the world through preeminence in creating, communicating, preserving and applying knowledge, art, and academic values, and in developing leaders and citizens who will challenge the present and enrich the future....

關於 Python 3 Programming 專項課程

This specialization teaches the fundamentals of programming in Python 3. We will begin at the beginning, with variables, conditionals, and loops, and get to some intermediate material like keyword parameters, list comprehensions, lambda expressions, and class inheritance. You will have lots of opportunities to practice. You will also learn ways to reason about program execution, so that it is no longer mysterious and you are able to debug programs when they don’t work. By the end of the specialization, you’ll be writing programs that query Internet APIs for data and extract useful information from them. And you’ll be able to learn to use new modules and APIs on your own by reading the documentation. That will give you a great launch toward being an independent Python programmer. This specialization is a good next step for you if you have completed Python for Everybody but want a more in-depth treatment of Python fundamentals and more practice, so that you can proceed with confidence to specializations like Applied Data Science with Python. But it is also appropriate as a first set of courses in Python if you are already familiar with some other programming language, or if you are up for the challenge of diving in head-first....
Python 3 Programming

常見問題

  • 注册以便获得证书后,您将有权访问所有视频、测验和编程作业(如果适用)。只有在您的班次开课之后,才可以提交和审阅同学互评作业。如果您选择在不购买的情况下浏览课程,可能无法访问某些作业。

  • 您注册课程后,将有权访问专项课程中的所有课程,并且会在完成课程后获得证书。您的电子课程证书将添加到您的成就页中,您可以通过该页打印您的课程证书或将其添加到您的领英档案中。如果您只想阅读和查看课程内容,可以免费旁听课程。

還有其他問題嗎?請訪問 學生幫助中心