[Solved] Python3 – create global variable(list) from function


Many thanks for all.
I used this code:

count = 3
urls = {}

def test(count):
    a = 1
    while a <= count:
        urls[a] = 'test'
        a += 1

test(count)
print(urls)

solved Python3 – create global variable(list) from function