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

Want to kickstart your project?Use the new AI Studio to create your code