Coursera
Coursera Logo

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 External Link Icon

Credential

Certificate

Python Functions, Files, and Dictionaries
 at 
Coursera 
Highlights

  • This Course Plus the Full Specialization.
  • Shareable Certificates.
  • Graded Programming Assignments.
Details Icon

Python Functions, Files, and Dictionaries
 at 
Coursera 
Course details

Skills you will learn
More about this course
  • 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.
Read more

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

    May 25, 2024
    Course Commencement Date

    Other courses offered by Coursera

    – / –
    3 months
    Beginner
    – / –
    20 hours
    Beginner
    – / –
    2 months
    Beginner
    – / –
    3 months
    Beginner
    View Other 6715 CoursesRight Arrow Icon

    Python Functions, Files, and Dictionaries
     at 
    Coursera 
    Students Ratings & Reviews

    5/5
    Verified Icon1 Rating
    R
    Rameswaram Emima
    Python Functions, Files, and Dictionaries
    Offered by Coursera
    5
    Learning Experience: Course provides overall knowledge about the topics and an excellent practice and quiz sections giving making us proficient on the topics
    Faculty: Faculty gives a wonderful learning experience mentioing lifetime examples to explain the topics Yes the curriculum is comprehensive and more techniques and unique codes were discussed there
    Course Support: Sorry to say No
    Reviewed on 5 Sep 2022Read More
    Thumbs Up IconThumbs Down Icon
    View 1 ReviewRight Arrow Icon
    qna

    Python Functions, Files, and Dictionaries
     at 
    Coursera 

    Student Forum

    chatAnything you would want to ask experts?
    Write here...