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.
Dieser Kurs ist Teil der Spezialisierung Spezialisierung Python 3 Programming
von
Über diesen Kurs
von

University of Michigan
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.
Lehrplan - Was Sie in diesem Kurs lernen werden
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.
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.
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.
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.
Bewertungen
Top-Bewertungen von PYTHON FUNCTIONS, FILES, AND DICTIONARIES
Good course, had a great hands on practice with the Runestone Notebook Environment. Appreciate the efforts of the instructors and whoever has designed in making the course and helped delivering it.
It's amazing learn for beginner .A wonderful learning resource and very simple way explains everything . Excellent lessons ,check your understanding ,e-book ,practice, and quiz work and lot of thing
The course content and the instructions was awesome and the step by step approach of guidance in the project helped me a lot in the fact that I have learned how to approach any problems statements.
This course (and the specialization as well) is a bit more challenging than 'Python for Everybody'. I enjoyed a lot. Runestone is an amazing feature that really helped navigate through the course.
Über den Spezialisierung 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.

Häufig gestellte Fragen
Wann erhalte ich Zugang zu den Vorträgen und Aufgaben?
Was bekomme ich, wenn ich diese Spezialisierung abonniere?
Is financial aid available?
Erhalte ich akademische Leistungspunkte für den Abschluss des Kurses?
Haben Sie weitere Fragen? Besuchen Sie das Hilfe-Center für Teiln..