Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/15-PDFs-and-Spreadsheets/03-PDFs-Spreadsheets-Puzzle-Solution.ipynb
Views: 648
PDFs and Spreadsheets Puzzle Exercise
You will need to work with two files for this exercise and solve the following tasks:
Task One: Grab the Google Drive link from the .csv file. (Hint: Its along the diagonal).
Task Two: Download the PDF from the Google Drive link (we already downloaded it for you just in case you can't download from Google Drive) and find the phone number that is in the document. Note: There are different ways of formatting a phone number!
Task One: Grab the Google Drive Link from .csv File
Grab all the lines of data.
We can see its along the diagonal, which means the values are at the index position that matches the row's number order. So the 1st letter is the 1st item in the 1st row, the 2nd letter is the 2nd item in the 2nd row, the 3rd item is the 3rd letter in the 3rd row and so on. We can use enumerate to track the row number and simply index off the data_lines.
Method One
Method Two
Task Two: Download the PDF from the Google Drive link and find the phone number that is in the document.
Phone Number Matching
Lot's of ways to do this, but you had to figure out the phone number was in format ###.###.####
Once you know the correct pattern:
Great Job! Information on this phone number: