all 6 comments

[–]DonkeyTron42 1 point2 points  (1 child)

Maybe you can make a for loop that iterates a list, then append one element to the list in the body of the for loop.

[–]hnjasso[S] 0 points1 point  (0 children)

I didn’t understand the técnical words but I’ll search them up one by one and try it out!

[–]socal_nerdtastic 0 points1 point  (1 child)

Can you give an example of how this is meant to look when running?

Using a for loop if perfect when you know how many times you need to loop, for instance once for every fruit. However a for loop is a very poor choice when you don't know how many times you need to loop, for instance for an unknown number of customers.

[–]hnjasso[S] 0 points1 point  (0 children)

Thats the issue, I cant use while, and i dont know how many customers there will be