There are 1 repository under py4e topic.
Solutions to Python for Everybody: Exploring Data using Python 3 by Charles Severance
| Python for Everybody - Exploring Data Using Python 3 | Author - Charles R. Severance @csev | Chapter Practices & Exercises |
PYTHON FOR EVERYBODY (py4e) Coursera SPECIALIZATION by UNIVERSITY OF MICHIGAN
My progress through the Python For Everybody Specialization by University of Michigan, taught by Professor Charles Russell Severance
n this assignment you will write a Python program somewhat similar to http://www.py4e.com/code3/geoxml.py. The program will prompt for a URL, read the XML data from that URL using urllib and then parse and extract the comment counts from the XML data, compute the sum of the numbers in the file. We provide two files for this assignment. One is a sample file where we give you the sum for your testing and the other is the actual data you need to process for the assignment. Sample data: http://py4e-data.dr-chuck.net/comments_42.xml (Sum=2553) Actual data: http://py4e-data.dr-chuck.net/comments_988433.xml (Sum ends with 94) You do not need to save these files to your folder since your program will read the data directly from the URL. Note: Each student will have a distinct data url for the assignment - so only use your own data url for analysis. Data Format and Approach The data consists of a number of names and comment counts in XML as follows: <comment> <name>Matthias</name> <count>97</count> </comment> You are to look through all the <comment> tags and find the <count> values sum the numbers. The closest sample code that shows how to parse XML is geoxml.py. But since the nesting of the elements in our data is different than the data we are parsing in that sample code you will have to make real changes to the code. To make the code a little simpler, you can use an XPath selector string to look through the entire tree of XML for any tag named 'count' with the following line of code: counts = tree.findall('.//count') Take a look at the Python ElementTree documentation and look for the supported XPath syntax for details. You could also work from the top of the XML down to the comments node and then loop through the child nodes of the comments node. Sample Execution $ python3 solution.py Enter location: http://py4e-data.dr-chuck.net/comments_42.xml Retrieving http://py4e-data.dr-chuck.net/comments_42.xml Retrieved 4189 characters Count: 50 Sum: 2...
In this program you will use a GeoLocation lookup API modelled after the Google API to look up some universities and parse the returned data.
the first repository created to showcase the work done during the PY4E course, and in case anyone needs it.
This is a collection of different assigments completed as part of the Programming for Everybody (Getting Started with Python) Coursera course: https://www.coursera.org/learn/python?
My solutions to the python projects for the freeCodeCamp Scientific Computing with Python Certification.
The program will prompt for a URL, read the JSON data from that URL using urllib and then parse and extract the comment counts from the JSON data, compute the sum of the numbers in the file.
solved problems from various resources
Sample code of Python For Everybody Specialization - Coursera
| Python for Everybody: Exploring Data in Python 3 | Author - Charles R. Severance @csev | Chapter Practices & Exercises |
My programming solution to the assignments of Python for Everybode Specialization.
Solutions to Python for Everybody: Exploring Data using Python 3 by Charles Severance
Some python practice solutions from class, py4e, rosalind and so on
My attempts at solving the exercises in the PY4E book.
This repo supports the project I produced for the Honors Track Assignment of the final Course 'Capstone - Retrieving, Processing and Visuallizing Data with Python' from 'Python for Everybody' Specialization by the 'University of Michigan' on Coursera.
These are my outputs while studying Python. I'm using Dr. Chuck's Python for Everybody, and the programs here are my outputs for every exercise in the book.
My solutions to the 'Python for Everybody' course (Charles Severance aka Dr. Chuck) exercises. https://www.py4e.com/
Collection of all my Certificates and Badges
This is my solution for scraping numbers and following links in HTML using BeautifulSoup, Chapter 12 assignments of Python for Everybody
These are my solutions to the Extracting Data from XML and JSON assignments for Chapter 13 of Python for Everybody
Hours worked and overtime calculator using Python
Free and open source begginer Python class offered by Dr. Charles Severance (https://www.py4e.com/)
A simple program that copies predefined text to the clipboard using the "Run" command in Windows
From Dr. Chuck's "Python for everybody", this are the lessons and excercises