import urllib.request, json 
apikey = "demo"
url = "https://financialmodelingprep.com/api/v3/quote-short/"

def ask_stock(name, apikey):
	global url
	url = url + name + "?apikey=" + apikey
ask_stock(str(input("Which stock price do you want to check?\n")), apikey)
with urllib.request.urlopen(url) as url:
	data = json.loads(url.read().decode())
for x in data:
	print(x["symbol"], ": " ,"$", x["price"],)
e93ebcac54bef5ff9f3d2e578f19d518e5a81323
<mask token>


def ask_stock(name, apikey):
    global url
    url = url + name + '?apikey=' + apikey


<mask token>

<mask token>


def ask_stock(name, apikey):
    global url
    url = url + name + '?apikey=' + apikey


ask_stock(str(input('Which stock price do you want to check?\n')), apikey)
with urllib.request.urlopen(url) as url:
    data = json.loads(url.read().decode())
for x in data:
    print(x['symbol'], ': ', '$', x['price'])

<mask token>
apikey = 'demo'
url = 'https://financialmodelingprep.com/api/v3/quote-short/'


def ask_stock(name, apikey):
    global url
    url = url + name + '?apikey=' + apikey


ask_stock(str(input('Which stock price do you want to check?\n')), apikey)
with urllib.request.urlopen(url) as url:
    data = json.loads(url.read().decode())
for x in data:
    print(x['symbol'], ': ', '$', x['price'])

import urllib.request, json
apikey = 'demo'
url = 'https://financialmodelingprep.com/api/v3/quote-short/'


def ask_stock(name, apikey):
    global url
    url = url + name + '?apikey=' + apikey


ask_stock(str(input('Which stock price do you want to check?\n')), apikey)
with urllib.request.urlopen(url) as url:
    data = json.loads(url.read().decode())
for x in data:
    print(x['symbol'], ': ', '$', x['price'])

import urllib.request, json 
apikey = "demo"
url = "https://financialmodelingprep.com/api/v3/quote-short/"

def ask_stock(name, apikey):
	global url
	url = url + name + "?apikey=" + apikey
ask_stock(str(input("Which stock price do you want to check?\n")), apikey)
with urllib.request.urlopen(url) as url:
	data = json.loads(url.read().decode())
for x in data:
	print(x["symbol"], ": " ,"$", x["price"],)