<jupyter_start><jupyter_text>Now You Code 1: NBA Stat LeaderboardsGet the current leader of each stat provided by http://www.espn.com/nba/statistics and print the stat title and the list of player in order.ex:```Offensive Leaders:Name                              ppg1. <NAME>, OKC	     31.42. <NAME>, NO	          28.63. <NAME>, SAC	      28.54. <NAME>, HOU	          27.95. <NAME>, BOS	         27.7```Suggested approach:- Use requests to download the page html- Use BeautifulSoup to extract the data- Create a function to process each stat box.- Loop through each stat box and process the stat- Use string format functions to format the output<jupyter_code>import requests
from bs4 import BeautifulSoup

html = requests.get('http://www.espn.com/nba/statistics').text
soup = BeautifulSoup(html, 'lxml')
boxes = soup.select('#my-players-table .span-2 .mod-container')
for box in boxes:
    for row in box.select('table tr'):
        items = row.find_all('td')
        if len(items) > 2:
            items = items[1:]
        if len(items) > 1:
            print('{:50}{}'.format(items[0].get_text(), items[1].get_text()))
    print('-' * 55)<jupyter_output>POINTS                                            PPG
1. <NAME>, OKC                         37.4
2. <NAME>, CLE                              34.2
3. <NAME>, SA                              30.3
4. <NAME>, WSH                                 29.6
5. <NAME>, HOU                              28.4
-------------------------------------------------------
ASSISTS                                           APG
1. <NAME>, WSH                                 11.4
2. <NAME>, OKC                         10.8
3. <NAME>, LAC                                9.9
4. <NAME>, HOU                              8.4
5. <NAME>, ATL                           7.7
-------------------------------------------------------
FIELD GOAL %                                      FG%
1. <NAME>, HOU                              .791
2. <NAME>, GS                               .760
3. <NAME>, LAC                            .705
4. <NAME>[...]
StarcoderdataJupyterStructuredCleanDedup