К содержимому
learnspaceYOUR NEXT CHAPTER
ПРОСТРАНСТВО ОБУЧЕНИЯ
ГлавнаяКаталог курсовМоё обучениеCoursera

Знания без границ

Учитесь у лучших университетов и компаний мира.

Открыть Coursera
Интеграция
Пространство университета
Моё пространствоСтраница курса
↵
ЯЛичный кабинетСтудент
© 2026 LearnSpaceКаждый день — возможность узнать больше.Помощь
Python Functions, Files, and Dictionaries · LearnSpace
Назад в каталог
courseraПрограммирование

Python Functions, Files, and Dictionaries

Курс от University of Michigan
Начальный≈ 41.8 чАнглийский
О курсеНавыкиПрограммаПреподаватели

О курсе

This course introduces the dictionary data structure and user-defined functions. You’ll learn about local and global variables, optional and keyword parameter-passing, named functions and lambda expressions. You’ll also learn about Python’s sorted function and how to control the order in which it sorts by passing in another function as an input. For your final project, you’ll read in simulated social media data from a file, compute sentiment scores, and write out .csv files. It covers chapters 10-16 of the textbook “Fundamentals of Python Programming,” which is the accompanying text (optional and free) for this course. The course is well-suited for you if you have already taken the "Python Basics" course and want to gain further fundamental knowledge of the Python language. Together, both courses are geared towards newcomers to Python programming, those who need a refresher on Python basics, or those who 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 a follow-up to the "Python Basics" course (course 1 of the Python 3 Programming Specialization), and it is the second of five courses in the specialization.

Навыки, которые вы освоите

Python ProgrammingData StructuresFile I/OProgramming PrinciplesData Import/Export

Программа курса

5 модулей · 174 учебных материалов

01Welcome, Files and CSV Output40 материалов

Welcome to Python Functions, Files, and Dictionaries!

Introduction to the SpecializationВидеоWhat’s New? Updates and Improvements in the Second EditionВидеоWelcome to Python Functions, Files, and DictionariesВидеоSyllabusЧтение

Учитесь у экспертов

Paul Resnick

Michael D. Cohen Collegiate Professor of Information

Steve Oney

Associate Professor

Python Functions, Files, and Dictionaries
В каталоге вашей программы

Инвестируйте в себя

Новые знания — в удобное для вас время.

Начать на Coursera

Обучение откроется на Coursera
в новой вкладке

Обучение на Coursera

≈ 41.8 ч

5 модулей

Язык: Английский

Субтитры: Арабский, Французский, Бенгальский, Узбекский, Украинский, Китайский (Китай), Греческий, Итальянский, Бразильский португальский, Вьетнамский, Нидерландский, Корейский, Немецкий, Пушту, Урду, Русский, Тайский, Индонезийский, Шведский, Турецкий, Азербайджанский, Испанский, Дари, Хинди, Японский, Казахский, Венгерский, Польский

Часть программы вашего университета
How to Use the Interactive TextbookВидео
Executing Python in the Jupyter EnvironmentВидео
A note on assertЧтение
(Optional) Getting Started with Jupyter NotebooksЛабораторная
Optional Lab - Testing with AssertЛабораторная
Help Us Learn More About You!Чтение

Files

Use the Runestone Practice ToolВнешний инструментIntroduction: FilesВидеоIntroduction: Working with Data FilesВнешний инструментReading a FileВидеоReading a FileВнешний инструментAlternative File Reading MethodsВнешний инструментIterating Over Lines in a FileВнешний инструментFinding a File in Your File SystemВидеоFinding a File in your File SystemВнешний инструментWriting to a FileВидеоWriting to a FileВнешний инструментUsing With to Open FilesВидеоUsing With to Open FilesВнешний инструментRecipe for Reading and Processing a FileВнешний инструментConclusion: FilesВидео

CSV Output

Introduction: .csv FormatВидеоReading a .csv FileВидеоCSV FormatВнешний инструментReading a .csv FileВнешний инструментWriting Data to a .csv FileВидеоWriting Data to a .csv FileВнешний инструментReading from Files with the csv ModuleВидеоWriting to Files with the csv ModuleВидеоTips on File NamingВидеоTips on Handling FilesВнешний инструментConclusion: .csv FormatВидеоOptional Lab - Reading and Writing FilesЛабораторнаяHow to Submit AssessmentsВидеоAssessment - Files and CSVПрограммированиеRecovering from corrupted assignment notebooksВидео
02Dictionaries and Dictionary Accumulation28 материалов

Dictionary Mechanics

Use the Runestone Practice ToolВнешний инструментIntroduction: Dictionary MechanicsВидеоIntroduction: Dictionary Learning GoalsВнешний инструментDictionariesВидеоDemonstration: Dictionary BasicsВидеоIntroduction: DictionariesВнешний инструментDictionary OperationsВидеоDictionary OperationsВнешний инструментDictionary MethodsВидеоDemonstration: Dictionary MethodsВидеоDictionary MethodsВнешний инструментAliasing and Copying with DictionariesВидеоAliasing and CopyingВнешний инструментConclusion: Dictionary MechanicsВидеоAssessment - Dictionary MechanicsПрограммирование

Dictionary Accumulation

Introduction: Dictionary AccumulationВидеоDictionary AccumulationВидеоDemonstration: Dictionary AccumulationВидеоIntroduction: Accumulating Multiple Results in a DictionaryВнешний инструментAccumulating Results From a DictionaryВидеоAccumulating Results From a DictionaryВнешний инструмент
03Functions and Tuples44 материалов

Function Basics

Use the Runestone Practice ToolВнешний инструментIntroduction: FunctionsВидеоIntroduction to FunctionsВнешний инструментDefining FunctionsВидеоFunction DefinitionВнешний инструментFunction InvocationВнешний инструментPositional Parameter PassingВидеоFunction ParametersВнешний инструментReturning ValuesВидеоReturning a Value from a FunctionВнешний инструментWay of the Programmer: Decoding a FunctionВидеоDecoding a FunctionВнешний инструментA Function that AccumulatesВидеоType HintingВидеоA Function that AccumulatesВнешний инструментConclusion: FunctionsВидео

Local and Global Variables, and Side Effects

Introduction: Variable Scoping and Side EffectsВидеоLocal and Global VariablesВидеоLocal VariablesВнешний инструментGlobal VariablesВнешний инструментFunction CompositionВидеоFunction CompositionВнешний инструмент

Tuples

Introduction: Tuple Packing and UnpackingВидеоIntroductionВнешний инструментTuple PackingВидеоTuple PackingВнешний инструментTuples as Return ValuesВнешний инструментTuple Assignment with UnpackingВидеоTuple Assignment with Unpacking
04More Iteration and Advanced Functions32 материалов

While Loop

Use the Runestone Practice ToolВнешний инструментIntroduction: While LoopВидеоIntroductionВнешний инструментThe While StatementВидеоThe While StatementВнешний инструментThe Listener LoopВидеоThe Listener LoopВнешний инструментRandomly Walking TurtlesВнешний инструментBreak and ContinueВидеоBreak and ContinueВнешний инструментWay of the Programmer: Infinite LoopsВидеоInfinite LoopsВнешний инструментConclusion: While LoopВидеоOptional Lab - While Loops, Break and ContinueЛабораторнаяAssessment - More About IterationПрограммирование

Advanced Functions

Introduction: Advanced FunctionsВидеоIntroduction: Optional ParametersВидеоMutation and Optional ParametersВидеоIntroduction: Optional ParametersВнешний инструментKeyword ParametersВидеоKeyword ParametersВнешний инструмент
05Sorting30 материалов

Sorting Basics

Use the Runestone Practice ToolВнешний инструментIntroduction: Sorting BasicsВидеоInvoking .Sort and SortedВидеоIntroduction: Sorting with Sort and SortedВнешний инструментOptional Reverse ParameterВидеоOptional Reverse ParameterВнешний инструментOptional Key ParameterВидеоOptional Key ParameterВнешний инструментConclusion - Sorting BasicsВидеоSorting Demonstration with Folk DancersЧтение

Sorting Dictionaries, Breaking Ties

Introduction: Advanced SortingВидеоSorting a Dictionary's KeysВидеоSorting a Dictionary's KeysВнешний инструментBreaking TiesВидеоBreaking TiesВнешний инструментWay of the Programmer: When to Use a Lambda ExpressionВидео

Way of the Programmer

Introduction: Running Python ElsewhereВидеоInstalling Python and VS Code Locally on WindowsВидеоInstalling Python and VS Code Locally on MacВидеоUsing VS CodeВидеоRunning Python in the CloudВидео

Python Functions, Files, and Dictionaries - Final Course Project

Introduction - Final Course ProjectВидеоProject - Part 1: Sentiment ClassifierПрограммированиеProject - Part 2: Sentiment AnalysisВзаимная проверка

Course Feedback

Course FeedbackЧтениеKeep Learning with Michigan OnlineЧтение
Accumulating the Best KeyВидео
Accumulating the Best KeyВнешний инструмент
csv Module with DictionariesВидео
When to Use a DictionaryВнешний инструмент
Conclusion: Dictionary AccumulationВидео
Optional Lab - DictionariesЛабораторная
Assessment - Dictionary AccumulationПрограммирование
Flow of Execution SummaryВнешний инструмент
Print vs. ReturnВнешний инструмент
Mutable Objects and Side EffectsВидео
Passing Mutable ObjectsВнешний инструмент
Side EffectsВнешний инструмент
Test Cases for FunctionsВидео
Writing Test Cases for FunctionsВнешний инструмент
Way of the Programmer: Enforcing Variable Typing for Function ParametersВидео
Conclusion: Variable Scoping and Side EffectsВидео
Optional Lab - Defining FunctionsЛабораторная
Assessment - FunctionsПрограммирование
Внешний инструмент
Unpacking Tuples as Arguments to Function CallsВнешний инструмент
Conclusion: Tuple Packing and UnpackingВидео
Optional Lab - Tuple Packing and UnpackingЛабораторная
Assessment - TuplesПрограммирование
Optional Lab - Optional and Keyword ParametersЛабораторная
Testing Optional ParametersВидео
Testing Optional ParametersВнешний инструмент
Test-Driven Program DevelopmentВидео
Test-driven Program DevelopmentВнешний инструмент
Anonymous Functions with Lambda ExpressionsВидео
Anonymous Function with Lambda ExpressionsВнешний инструмент
Programming With StyleВнешний инструмент
Conclusion: Advanced FunctionsВидео
Optional Lab - Testing Functions, Lambda ExpressionsЛабораторная
Assessment - Advanced FunctionsПрограммирование
When to Use Lambda vs. FunctionВнешний инструмент
Conclusion: Advanced SortingВидео
Optional Lab - SortingЛабораторная
Assessment - SortingПрограммирование