Let's check out! - A little sidetracking


#1

Code works just fine. But what if you'd want to buy 20 oranges. You could write down "orange" 20 times within the shopping_list list, but that seems inefficient. I can't use
"orange" x 20
because of a syntax error. So what would be a more efficient way to write that down?


#2

That is coming up in the next lesson or two. Proceed...


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.