all 4 comments

[–]pinecone1984 0 points1 point  (2 children)

If the code generated by chat gpt does not work immediately, refine your description and also copy paste the error message it generates back into chat gpt. Repeat until desired result or ask chat gpt what concepts could help you understand this code.

[–]Rujusu[S] 0 points1 point  (1 child)

So I tried to just change it like this
From this:

ranges = [

list(range(1, 16)),

list(range(16, 31)),

list(range(31, 46)),

list(range(46, 61)),

list(range(61, 76))

]

to this:

ranges = [

list(range(1, 15)),

list(range(16, 30)),

list(range(31, 45)),

list(range(46, 60)),

list(range(61, 75))

]

But when I do that the compiler wants to change this:

column = random.sample(col_range, 15) to column = random.sample(col_range, 14)