ICP 3 - AsharGit/Python-ICP GitHub Wiki

Welcome to the Python-ICP-3 wiki!

For this ICP we used classes, BeautifulSoup and numpy libraries. The ICP was divided into 3 tasks.

Video for this ICP: https://youtu.be/4qfOZ9eXEQ8

The first task asks us to create a class of employee and assign functions to be able to find the number of employees and average salary of all employees. We also used inheritance to create a full time employee class. The code is shown below:

Code

The output:

Output

The second task asks us to use request and BeautifulSoup library to create a web scraper so we can go through websites and collect data. For this ICP we collected all links present in the Wikipedia page of Deep Learning and then storing them in a file.

Code

The output:

Output

The text file which had 2000+ links:

Text

The final task requires the use of numpy library to create and modify arrays. The task here was to create a 20 float array and then modify it into a 4 X 5 matrix. Then we find the max value in each row and replace it with a 0. The code is shown below:

Code

The output:

Output