PW Akshay

Generation

code to explanationMon, 28 Nov 2022

for i in range(c): a += random.choice(b)

the function takes a list and an integer and returns a list with the same elements as the list but with the integer as the length of the list

Questions about programming?Chat with your personal AI assistant