Python vs. Java: Which Should I Learn?
December 4, 2024
Article
This course is part of Python 3 Programming Specialization
Instructors: Paul Resnick
Instructor ratings
We asked all learners to give feedback on our instructors based on the quality of their teaching style.
136,465 already enrolled
Included with
(5,342 reviews)
(5,342 reviews)
Explore the dictionary data structure and user-defined functions in Python.
Understand concepts like local and global variables, parameter-passing techniques, named functions, and lambda expressions.
Apply Python's sorted function and control sorting order with custom functions.
Create a final project involving social media data analysis and CSV file manipulation.
Add to your LinkedIn profile
Add this credential to your LinkedIn profile, resume, or CV
Share it on social media and in your performance review
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.
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.
20 videos3 readings1 programming assignment13 app items3 ungraded labs
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.
15 videos2 programming assignments10 app items1 ungraded lab
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.
19 videos2 programming assignments21 app items2 ungraded labs
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.
14 videos2 programming assignments13 app items3 ungraded labs
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.
16 videos3 readings2 programming assignments1 peer review7 app items1 ungraded lab
We asked all learners to give feedback on our instructors based on the quality of their teaching style.
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.
Rice University
Course
University of Colorado Boulder
Course
Taking this course by University of Michigan may provide you with a preview of the topics, materials and instructors in a related degree program which can help you decide if the topic or university is right for you.
Taking this course by University of Michigan may provide you with a preview of the topics, materials and instructors in a related degree program which can help you decide if the topic or university is right for you.
University of Michigan
Degree · 1 – 3 years
5,342 reviews
87.16%
11.18%
1.19%
0.16%
0.28%
Showing 3 of 5342
Reviewed on May 16, 2020
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.
Reviewed on Jan 28, 2020
Great follow-on from the basics with essential information. Well constructed series, well presented lessons, with great practice questions. I feel a big step closer to writing useful python code.
Reviewed on Sep 4, 2020
The Course was really great. Learnt a lot.The final project was really challenging and took my whole brain (sarcasm), completed though after a great effort.Liked those kind of challenging questions.
Unlimited access to 10,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription
Earn a degree from world-class universities - 100% online
Upskill your employees to excel in the digital economy
Access to lectures and assignments depends on your type of enrollment. If you take a course in audit mode, you will be able to see most course materials for free. To access graded assignments and to earn a Certificate, you will need to purchase the Certificate experience, during or after your audit. If you don't see the audit option:
The course may not offer an audit option. You can try a Free Trial instead, or apply for Financial Aid.
The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile. If you only want to read and view the course content, you can audit the course for free.
If you subscribed, you get a 7-day free trial during which you can cancel at no penalty. After that, we don’t give refunds, but you can cancel your subscription at any time. See our full refund policy.
Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.