Python Functions Files and Dictionaries

2.4
2.4 rating

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.

WEEK 1
6 hours to complete
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 videos (Total 88 min) 14 readings 3 quizzes

WEEK 2
6 hours to complete
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 videos (Total 77 min) 9 readings 4 quizzes

WEEK 3
8 hours to complete
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 videos (Total 81 min) 19 readings 4 quizzes

WEEK 4
6 hours to complete
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 videos (Total 49 min) 10 readings 4 quizzes

WEEK 5
7 hours to complete
Sorting
In week five the videos and Runestone textbook will detail how to sort python objects - both the basics and more advanced forms of sorting for dictionaries and how to break a tie (if that occurs). The final course assessment will be a project that asks you to read fake auto-generated data from a social media site to analyze social media post sentiments. You will submit a csv file as well as images of graphs that demonstrate your findings.
11 videos (Total 59 min) 7 readings 4 quizzes


Tham gia đánh giá khóa học

Nếu bạn đã học qua khóa học này thì mời bạn tham gia đóng góp ý kiến và đánh giá để cộng đồng bạn học có thêm thông tin tham khảo.

Cung cấp bởi: Coursera /  University of Michigan

Thời lượng: 32 giờ
Ngôn ngữ giảng dạy: Tiếng Anh
Chi phí: Miễn phí / 0
Đối tượng: Beginner

Thông tin về nhà cung cấp

Coursera (/ kərˈsɛrə /) là một nền tảng học tập trực tuyến toàn cầu được thành lập vào năm 2012 bởi 2 giáo sư khoa học máy tính của đại học Stanford là Andrew NgDaphne Koller, nền tảng này cung cấp các khóa học trực tuyến (MOOC) cho cộng đồng người học online.

Coursera hợp tác với các trường đại học danh tiếng tại Bắc Mỹ và trên khắp thế giới, cùng với nhiều tổ chức khác để cung cấp các khóa học trực tuyến chất lượng, theo chuyên ngành và được cấp chứng chỉ trong nhiều lĩnh vực như kỹ thuật, khoa học dữ liệu, học máy, toán học, kinh doanh, khoa học máy tính, tiếp thị kỹ thuật số, nhân văn, y học, sinh học, khoa học xã hội , và nhiều ngành khác.

Các khóa học cùng chủ đề

Visual Perception for Self-Driving Cars

This course will introduce you to the main perception tasks in autonomous driving, static and dynamic object detection, and will survey common computer vision methods for robotic perception. By the...

Motion Planning for Self-Driving Cars

This course will introduce you to the main planning tasks in autonomous driving, including mission planning, behavior planning and local planning. By the end of this course, you will be...

Capstone: Autonomous Runway Detection for IoT

This capstone project course ties together the knowledge from three previous courses in IoT though embedded systems: Development of Real-Time Systems Web Connectivity & Security and Embedded Hardware and Operating...

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to Top