[Solved] put variable in quotes from a list loop? [closed]


It is probably easier (and efficient/Pythonic) to use a for loop to achieve this:

coin = ["BTC", "NEO", "ETH"]

for i in coin:
    term = urllib.parse.quote("'" + i + "-BTC'")
    depth = client.get_order_book(term, limit=50)

solved put variable in quotes from a list loop? [closed]