Bitcoin price alert system KEYerror

Hello, I am facing an KEY error while executing the python code for bitcoin alert system
HERE’S THE CODE


HERE’S THE OUTPUT

hi @rajputsafal27
try this code : url= “https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms={}".format("currency.upper”)

You could also check this documentation for formatting the URL string to include your input.
Also I think you have missed the ‘&t’ in the URL.
Hope this works!

Here is the document for reference: https://www.datacamp.com/community/tutorials/python-string-format?utm_source=adwords_ppc&utm_campaignid=1455363063&utm_adgroupid=65083631748&utm_device=c&utm_keyword=&utm_matchtype=b&utm_network=g&utm_adpostion=&utm_creative=278443377095&utm_targetid=aud-392016246653:dsa-429603003980&utm_loc_interest_ms=&utm_loc_physical_ms=9303066&gclid=Cj0KCQjwkZiFBhD9ARIsAGxFX8CaGxK_PgxC3Bk12vrfSe2QOm8pUJZkuzli9S-hKQp0bFYMfLAPTecaAkQ6EALw_wcB