azamtoiri / Algorithms

Unused variable found PYL-W0612
Anti-pattern
Major
2 years ago2 years old
62
63def gen_list() -> list:  # generate array size 1000 with random values from 1 to 1003
64    arr = []
65    for i in range(1000):66        rand = randint(1, 1003)
67        arr.append(rand)
68    return arr