1
2
from urllib.request import urlopen
from bs4 import BeautifulSoup
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
from urllib.request import urlopen
from bs4 import BeautifulSoup
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
#takes the given dictionary and lets user select an option
def get_menu_choice(choices_dict, prompt_str = "Select the option:- "):
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
<!DOCTYPE html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
| Ticker,| Employees,| Price,| Chg % 1D,| Chg 1D,| Technical Rating 1D,| Vol 1D,| Volume * Price 1D,| Market cap,| P/E(TTM),| EPS(TTM),| Sector
| GHGGULF HOTELS GROUP,| 770,| 0.352BHD,| −0.28%,| −0.001BHD,| Sell,| 100K,| 35.2K,| 79.776MBHD,| 11.65,| 0.03BHD,| Consumer Services,"
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Adding or removing files is disabled during broadcasting. You'll be able to update files again once the broadcast session is over.

Files listed here are available to use in your code in this trinket. Click the File Library button to include more or upload new files.

There was a problem connecting to the server.

Please check your connection and try running the trinket again.

Run your code first!

It looks like you haven't tried running your new code.

Try clicking  Run and if you like the result, try sharing again.

×