Instantly share code, notes, and snippets.

@jennyonjourney

jennyonjourney / gist:f71a36dfa36849378a1be9f7708e5e01

  • Download ZIP
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Embed Embed this gist in your website.
  • Share Copy sharable link for this gist.
  • Clone via HTTPS Clone using the web URL.
  • Learn more about clone URLs
  • Save jennyonjourney/f71a36dfa36849378a1be9f7708e5e01 to your computer and use it in GitHub Desktop.

@anishagithub

anishagithub commented Jul 3, 2021

why is my code not working: xs=open('8.5not.txt') c=dict() p=list() for line in xs: if line.startswith('From '): words=line.split() else: continue for word in words: m=word[5].split(':') c[m[0]]=c.get(m[0],0)+1 for k,v in c.items(): p.append(k,v) p.sort() print(p)

Sorry, something went wrong.

@kapazan

kapazan commented Oct 16, 2022

The code works but it is still problematic. If you write "From" instead of "From " without a space at the end, code blows up as it also iterates the lines whose length are smaller than 5.

Search This Blog

Ashvini sharma.

Hello dosto! Welcome to my Blog . I am so happy to visit my blog. In this blog you can find your maximum information as like related to Coursera in, you find all quiz and assignment weekly as your course embedded.

Python data structures: Assignment 10.2

Post a comment.

Comments here for more information.........

Popular posts from this blog

Python data structures: assignment 7.1, python data structure: assignment 8.4, programming for everybody (python) assignment 5.2, coursera:web application technologies and django.

Image

Python data structures Chapter 6 Quiz

Image

Auroras Technological and Research Institute

  • Top Courses

Auroras Technological and Research Institute

Python Data Structures

This course is part of Python for Everybody Specialization

Taught in English

Some content may not be translated

Charles Russell Severance

Instructor: Charles Russell Severance

Sponsored by Auroras Technological and Research Institute

1,028,919 already enrolled

(94,730 reviews)

What you'll learn

Explain the principles of data structures & how they are used

Create programs that are able to read and write data from files

Store data as key/value pairs using Python dictionaries

Accomplish multi-step tasks like sorting or looping using tuples

Skills you'll gain

  • Computer Programming
  • Computer Programming Tools
  • Critical Thinking
  • Data Analysis
  • Data Management
  • Data Structures
  • Problem Solving
  • Programming Principles
  • Python Programming

Details to know

coursera python data structures assignment 10.2 answers

Add to your LinkedIn profile

See how employees at top companies are mastering in-demand skills

Placeholder

Build your subject-matter expertise

  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate

Placeholder

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV

Share it on social media and in your performance review

Placeholder

There are 7 modules in this course

This course will introduce the core data structures of the Python programming language. We will move past the basics of procedural programming and explore how we can use the Python built-in data structures such as lists, dictionaries, and tuples to perform increasingly complex data analysis. This course will cover Chapters 6-10 of the textbook “Python for Everybody”. This course covers Python 3.

Chapter Six: Strings

In this class, we pick up where we left off in the previous class, starting in Chapter 6 of the textbook and covering Strings and moving into data structures. The second week of this class is dedicated to getting Python installed if you want to actually run the applications on your desktop or laptop. If you choose not to install Python, you can just skip to the third week and get a head start.

What's included

7 videos 7 readings 1 quiz 1 app item

7 videos • Total 57 minutes

  • Video Welcome - Dr. Chuck • 1 minute • Preview module
  • 6.1 - Strings • 15 minutes
  • 6.2 - Manipulating Strings • 17 minutes
  • Worked Exercise: 6.5 • 8 minutes
  • Bonus: Office Hours New York City • 2 minutes
  • Bonus: Monash Museum of Computing History • 7 minutes
  • Fun: The Textbook Authors Meet @PyCon • 3 minutes

7 readings • Total 70 minutes

  • Reading: Welcome to Python Data Structures • 10 minutes
  • Help Us Learn More About You! • 10 minutes
  • Course Syllabus • 10 minutes
  • Textbook • 10 minutes
  • Submitting Assignments • 10 minutes
  • Notice for Auditing Learners: Assignment Submission • 10 minutes
  • Audio Versions of All Lectures • 10 minutes

1 quiz • Total 30 minutes

  • Chapter 6 Quiz • 30 minutes

1 app item • Total 60 minutes

  • Assignment 6.5 • 60 minutes

Unit: Installing and Using Python

In this module you will set things up so you can write Python programs. We do not require installation of Python for this class. You can write and test Python programs in the browser using the "Python Code Playground" in this lesson. Please read the "Using Python in this Class" material for details.

5 videos 2 readings 1 peer review 1 app item

5 videos • Total 26 minutes

  • Demonstration: Using the Python Playground • 3 minutes • Preview module
  • Windows 10: Installing Python and Writing A Program • 6 minutes
  • Windows: Taking Screen Shots • 2 minutes
  • Macintosh: Using Python and Writing A Program • 9 minutes
  • Macintosh: Taking Screen Shots • 4 minutes

2 readings • Total 20 minutes

  • Important Reading: Using Python in this Class • 10 minutes
  • Notes on Choice of Text Editor • 10 minutes

1 peer review • Total 60 minutes

  • Optional- Installing Python Screen Shots • 60 minutes
  • Python Code Playground • 60 minutes

Chapter Seven: Files

Up to now, we have been working with data that is read from the user or data in constants. But real programs process much larger amounts of data by reading and writing files on the secondary storage on your computer. In this chapter we start to write our first programs that read, scan, and process real data.

5 videos 1 reading 1 quiz 2 app items

5 videos • Total 46 minutes

  • 7.1 - Files • 8 minutes • Preview module
  • 7.2 - Processing Files • 11 minutes
  • Demonstration: Worked Exercise 7.1 • 9 minutes
  • Bonus: Office Hours Barcelona • 1 minute
  • Bonus: Gordon Bell - Building Blocks of Computing • 15 minutes

1 reading • Total 10 minutes

  • Where is the 7.2 worked exercise? • 10 minutes
  • Chapter 7 Quiz • 30 minutes

2 app items • Total 120 minutes

  • Assignment 7.1 • 60 minutes
  • Assignment 7.2 • 60 minutes

Chapter Eight: Lists

As we want to solve more complex problems in Python, we need more powerful variables. Up to now we have been using simple variables to store numbers or strings where we have a single value in a variable. Starting with lists we will store many values in a single variable using an indexing scheme to store, organize, and retrieve different values from within a single variable. We call these multi-valued variables "collections" or "data structures".

7 videos 1 quiz 2 app items

7 videos • Total 47 minutes

  • 8.1 - Lists • 10 minutes • Preview module
  • 8.2 - Manipulating Lists • 9 minutes
  • 8.3 - Lists and Strings • 7 minutes
  • Fun: Python Lists in Paris • 0 minutes
  • Worked Exercise: Lists • 11 minutes
  • Bonus: Office Hours - Chicago • 0 minutes
  • Bonus: Rasmus Lerdorf - Inventing the PHP Language • 7 minutes
  • Chapter 8 Quiz • 30 minutes
  • Assignment 8.4 • 60 minutes
  • Assignment 8.5 • 60 minutes

Chapter Nine: Dictionaries

The Python dictionary is one of its most powerful data structures. Instead of representing values in a linear list, dictionaries store data as key / value pairs. Using key / value pairs gives us a simple in-memory "database" in a single Python variable.

7 videos 1 quiz 1 app item

7 videos • Total 75 minutes

  • 9.1 - Dictionaries • 9 minutes • Preview module
  • 9.2 - Counting with Dictionaries • 8 minutes
  • 9.3 - Dictionaries and Files • 13 minutes
  • Worked Exercise: Dictionaries • 26 minutes
  • Bonus: Office Hours - Amsterdam • 3 minutes
  • Bonus: Brendan Eich - Inventing Javascript • 11 minutes
  • Fun: Dr. Chuck Goes Motocross Racing • 2 minutes
  • Chapter 9 Quiz • 30 minutes
  • Assignment 9.4 • 60 minutes

Chapter Ten: Tuples

Tuples are our third and final basic Python data structure. Tuples are a simple version of lists. We often use tuples in conjunction with dictionaries to accomplish multi-step tasks like sorting or looping through all of the data in a dictionary.

6 videos 1 quiz 1 app item

6 videos • Total 51 minutes

  • 10 - Tuples • 17 minutes • Preview module
  • Worked Exercise: Tuples and Sorting • 12 minutes
  • Bonus: Office Hours - Puebla, Mexico • 1 minute
  • Bonus: John Resig - Inventing JQuery • 10 minutes
  • Douglas Crockford: JavaScript Object Notation (JSON) • 7 minutes
  • Fun: The Greatest Taco in the World • 2 minutes
  • Chapter 10 Quiz • 30 minutes
  • Assignment 10.2 • 60 minutes

To celebrate your making it to the halfway point in our Python for Everybody Specialization, we welcome you to attend our online graduation ceremony. It is not very long, and it features a Commencement speaker and very short commencement speech.

2 videos 2 readings

2 videos • Total 16 minutes

  • Graduation Ceremony • 7 minutes • Preview module
  • Dr.Chuck Wrap Up/What's Next • 8 minutes
  • Please Rate this Course on Class-Central • 10 minutes
  • Post-Course Survey • 10 minutes

Instructor ratings

We asked all learners to give feedback on our instructors based on the quality of their teaching style.

coursera python data structures assignment 10.2 answers

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.

Why people choose Coursera for their career

coursera python data structures assignment 10.2 answers

Learner reviews

Showing 3 of 94730

94,730 reviews

Reviewed on Aug 18, 2017

i have learned what exact python is now on this stage i can program in python and i recommend everyone want to study about the python to take this course and experienced and really thanks to Dr. CHUCK

Reviewed on Oct 8, 2017

assignment 9.4 auto grader not working .

LTI unable to launch. error message: This tool should be launched from a learning system using LTI. i am using chrome on mac book air 2 and python 3.6

Reviewed on Jun 19, 2020

Great course for pyhton. Loved this course and enjoyed it. Thanks to Dr.Chuck. If anyone who want to take a course which is well explained and fun for python learning, then Hey!!! this is your course.

Recommended if you're interested in Computer Science

coursera python data structures assignment 10.2 answers

University of Michigan

Using Python to Access Web Data

coursera python data structures assignment 10.2 answers

Using Databases with Python

coursera python data structures assignment 10.2 answers

Capstone: Retrieving, Processing, and Visualizing Data with Python

coursera python data structures assignment 10.2 answers

University of Zurich

An Intuitive Introduction to Probability

Placeholder

Open new doors with Coursera Plus

Unlimited access to 7,000+ world-class courses, hands-on projects, and job-ready certificate programs - all included in your subscription

Advance your career with an online degree

Earn a degree from world-class universities - 100% online

Join over 3,400 global companies that choose Coursera for Business

Upskill your employees to excel in the digital economy

Search This Blog

Coursera python data structures assignment answers.

This course will introduce the core data structure of the Python programming ... And, the answer is only for hint . it is helpful for those student who haven't submit Assignment and who confused ... These five lines are the lines to do this particular assignment where we are ...

chapter 7 week 3 Assignment 7.1

coursera python data structures assignment 10.2 answers

Post a Comment

if you have any doubt , please write comment

Popular posts from this blog

Chapter 9 week 5 assignment 9.4.

Image

chapter 10 week 6 Assignment 10.2

Image

chapter 6 week 1 Assignment 6.5

Image

IMAGES

  1. Python Data Structures Assignment 10.2 Solution [Coursera]

    coursera python data structures assignment 10.2 answers

  2. Coursera :Python Data Structures Assignment 10.2 Graded

    coursera python data structures assignment 10.2 answers

  3. Python Data Structures Assignment 10.2 Solution [Coursera]

    coursera python data structures assignment 10.2 answers

  4. Coursera: Python Data Structures Complete Course Assignment Solutions |Python Data Structures Answer

    coursera python data structures assignment 10.2 answers

  5. Python data structures coursera chapter quiz answer

    coursera python data structures assignment 10.2 answers

  6. Coursera: Python Data Structures Complete Course solved Live

    coursera python data structures assignment 10.2 answers

VIDEO

  1. PYTHON DATA STRUCTURES Assignment 7.1 [coursera]

  2. Assignment 9.4 Python Data Structures

  3. Coursera: Python Data Structures. Chapter 7 Quiz Answers

  4. Python for Everybody Answers

  5. NPTEL The Joy of Computing using Python week 10 quiz assignment answers with proof of each answer

  6. NPTEL: Programming , Data Structures and Algorithms Using Python Week 4 Quiz answer with proof(100%)

COMMENTS

  1. Python Data Structures (Coursera) Assignement 10.2 · GitHub

    Python Data Structures (Coursera) Assignement 10.2. # 10.2 Write a program to read through the mbox-short.txt and figure out the distribution by hour of the day for each of the messages. You can pull the hour out from the 'From ' line by finding the time and then splitting the string a second time using a colon.

  2. {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name

    {"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":"README.md","path":"README.md","contentType":"file"},{"name":"Week 1 (Chapter 6) Quiz answers ...

  3. Python Data Structures Assignment 10.2 Solution [Coursera ...

    Python Data Structures Assignment 10.2 Solution [Coursera] | Assignment 10.2 Python Data StructuresCoursera: Programming For Everybody Assignment 10.2 progra...

  4. Coursera :10.2 Assignment solution/ Python data structures10.2

    # Coursera :- #python data structures# PythonCHAPTER :- PYTHON DATA STRUCTURESASSIGNMENT:- 👇👇👇👇Assignment:- 6.5 Solution 👇👇https://youtu.be ...

  5. Coursera :Python Data Structures Assignment 10.2 Graded

    In This Video I Show you Coursera :Python Data Structures Assignment 10 2 GradedSubscribe to channel :Learn with KritarthNext Channel :Kritarth Editz-----...

  6. Python Data Structures

    This course will introduce the core data structures of the Python programming language. We will move past the basics of procedural programming and explore how we can use the Python built-in data structures such as lists, dictionaries, and tuples to perform increasingly complex data analysis. This course will cover Chapters 6-10 of the textbook ...

  7. Python data structures: Assignment 10.2

    Coursera : Python data structures Assignment 8.4 Week 4 8.4 Open the file romeo.txt and read it line by line. For each line, split the line into a list of words using the split() method. The program should build a list of words. For each word on each line check to see if the word is already in the list and if not append it to the list.

  8. chapter 10 week 6 Assignment 10.2

    chapter 10 week 6 Assignment 10.2. 10.2 Write a program to read through the mbox-short.txt and figure out the distribution by hour of the day for each of the messages. You can pull the hour out from the 'From ' line by finding the time and then splitting the string a second time using a colon. Once you have accumulated the counts for each hour ...

  9. Python Data Structure| Assignment 10.2 solution

    #Python#python data structure#a popular course on Coursera taught by Michigan State University, USA#Python#Pythondatastructure#Assignment_10.2#solution#Cours...

  10. Invalid Output for Coursera Python Assignment

    1. I'm doing the Coursera Python for Everybody stream and I'm stuck on Assignment 10.2. I'm getting invalid output for it. Here is what the assignment asks: Write a program to read through the mbox-short.txt and figure out the distribution by hour of the day for each of the messages. You can pull the hour out from the 'From ' line by finding ...

  11. Assignment 10.2 Python Data Structures

    Hello EveryOne. Welcome to #mythoughts...-----Thanks for watching!!-----PythonData Structures Assignment10...

  12. coursera Python data structures assignment answers

    chapter 10 week 6 Assignment 10.2. Tuesday, June 16, 2020. 10.2 Write a program to read through the mbox-short.txt and figure out the distribution by hour of the day for each of the messages. You can pull the hour out from the 'From ' line by finding the time and then splitting the string a second time using a colon.

  13. coursera-python-for-everybody-specialization/Course_2_Python_Data

    Current repository contains all assignments, notes, quizzes and course materials from the "Python for Everybody Specialization" provided by Coursera and University of Michigan. - sersavn/...

  14. Python Data Structures

    This course will introduce the core data structures of the Python programming language. We will move past the basics of procedural programming and explore how we can use the Python built-in data structures such as lists, dictionaries, and tuples to perform increasingly complex data analysis. This course will cover Chapters 6-10 of the textbook ...

  15. Coursera: Python Data Structures Complete Course Assignment ...

    Text File of All 7 Assignment Coding :- https://ko-fi.com/s/bf5f9906dfFiles For Indian Payment Users:- Https://imojo.in/PythonC2Python Data Structures Course...

  16. chapter 6 week 1 Assignment 6.5

    chapter 6 week 1 Assignment 6.5. Tuesday, June 16, 2020. 6.5 Write code using find () and string slicing (see section 6.10) to extract the number at the end of the line below. Convert the extracted value to a floating point number and print it out.

  17. Python Data Structures Chapter 10 Quiz Solution [Coursera ...

    Python Data Structures Chapter 10 Quiz Solution [Coursera] | Chapter 10 Quiz Python Data StructuresPython Data Structures Chapter 10 Quiz Solution [Coursera]...

  18. chapter 7 week 3 Assignment 7.1

    The program creates a Python dictionary that maps the sender's mail address to a count of the number of times they appear in the file. After the dictionary is produced, the program reads through the dictionary using a maximum loop to find the most prolific committer. Answer: