Python Functions, Files, and Dictionaries
- Offered byCoursera
Python Functions, Files, and Dictionaries at Coursera Overview
Duration | 31 hours |
Start from | Start Now |
Total fee | Free |
Mode of learning | Online |
Difficulty level | Beginner |
Official Website | Explore Free Course |
Credential | Certificate |
Python Functions, Files, and Dictionaries at Coursera Highlights
- This Course Plus the Full Specialization.
- Shareable Certificates.
- Graded Programming Assignments.
Python Functions, Files, and Dictionaries at Coursera Course details
- 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 Functions, Files, and Dictionaries at Coursera Curriculum
Files and CSV Output
Introduction to the Specialization
Welcome to Python Functions, Files, and Dictionaries
How to Use the Interactive Textbook
Introduction: Files
Reading a File
Finding a File in Your File System
Writing to a File
Using With to Open Files
Conclusion: Files
Introduction: .csv Format
Reading a .csv File
Writing Data to a .csv File
Tips on File Naming
Conclusion: .csv Format
Syllabus
Help Us Learn More About You!
Introduction: Working with Data Files
Reading a File
Alternative File Reading Methods
Iterating Over Lines in a File
Finding a File in your File System
Writing to a File
Using With to Open Files
Recipe for Reading and Processing a File
CSV Format
Reading a .csv File
Writing Data to a .csv File
Tips on Handling Files
Optional - What Did You Use to Practice This Week?
Dictionaries and Dictionary Accumulation
Dictionaries
Demonstration: Dictionary Basics
Dictionary Operations
Dictionary Methods
Demonstration: Dictionary Methods
Aliasing and Copying with Dictionaries
Dictionary Accumulation
Demonstration: Dictionary Accumulation
Accumulating Results From a Dictionary
Demonstration: Accumulating Results From a Dictionary
Introduction: Dictionary Learning Goals
Introduction: Dictionaries
Dictionary Operations
Dictionary Methods
Aliasing and Copying
Introduction: Accumulating Multiple Results in a Dictionary
Accumulating Results From a Dictionary
Accumulating the Best Key
When to Use a Dictionary
Optional - What Did You Use to Practice This Week?
Functions and Tuples
Introduction: Functions
Defining Functions
Positional Parameter Passing
Returning Values
Way of the Programmer: Decoding a Function
A Function that Accumulates
Conclusion: Functions
Introduction: Variable Scoping and Side Effects
Local and Global Variables
Function Composition
Mutable Objects and Side Effects
Conclusion: Variable Scoping and Side Effects
Introduction: Tuple Packing and Unpacking
Tuple Packing
Tuple Assignment with Unpacking
Conclusion: Tuple Packing and Unpacking
Introduction to Functions
Function Definition
Function Invocation
Function Parameters
Returning a Value from a Function
Decoding a Function
A Function that Accumulates
Local Variables
Global Variables
Function Composition
Flow of Execution Summary
Print vs. Return
Passing Mutable Objects
Side Effects
Introduction
Tuple Packing
Tuples as Return Values
Tuple Assignment with Unpacking
Unpacking Into Iterator Variables
Optional - What Did You Use to Practice This Week?
More Iteration and Advanced Functions
The While Statement
The Listener Loop
Break and Continue
Way of the Programmer: Infinite Loops
Optional Parameters
Keyword Parameters
Anonymous Functions with Lambda Expressions
Introduction
The While Statement
The Listener Loop
Randomly Walking Turtles
Break and Continue
Infinite Loops
Introduction: Optional Parameters
Keyword Parameters
Anonymous Function with Lambda Expressions
Programming With Style
Optional - What Did You Use to Practice This Week?
Sorting
Introduction: Sorting Basics
Invoking .Sort and Sorted
Optional Reverse Parameter
Optional Key Parameter
Conclusion - Sorting Basics
Introduction: Advanced Sorting
Sorting a Dictionary's Keys
Breaking Ties
Way of the Programmer: When to Use a Lambda Expression
Conclusion: Advanced Sorting
Introduction - Final Course Project
Introduction: Sorting with Sort and Sorted
Optional Reverse Parameter
Optional Key Parameter
Sorting a Dictionary's Keys
Breaking Ties
When to Use Lambda vs. Function
Course Feedback
Keep Learning with Michigan Online
Python Functions, Files, and Dictionaries at Coursera Admission Process
Important Dates
Other courses offered by Coursera
Python Functions, Files, and Dictionaries at Coursera Students Ratings & Reviews
- 4-51