Mar-25-2021, 03:22 PM
Hi everyone,
I have a question that I can't figure out, I've been trying to find the answer myself.
I have created two lists and looped through them to create the final list
fruits []
I now want to assign 5 random fruits to each 'fruit basket' that I have created
I thought this might work:
while len (fruits_1) <5
but it just keeps looping through the code over and over.
How can I give 5 different fruits to each fruit basket?
I have a question that I can't figure out, I've been trying to find the answer myself.
I have created two lists and looped through them to create the final list
fruits []
I now want to assign 5 random fruits to each 'fruit basket' that I have created
I thought this might work:
while len (fruits_1) <5
but it just keeps looping through the code over and over.
How can I give 5 different fruits to each fruit basket?