I am trying to loop my database output and get the result of each loop as variable with following code.
for item in output:
v=''.join(item)
link="https://example.com/user/{}".format(v)
print(link)
I already tried to put that in a variable with:
var=for item in output:
v=''.join(item)
link="https://example.com/user/{}".format(v)
print(link)
but that did not work