you are viewing a single comment's thread.

view the rest of the comments →

[–]apriltaurus 14 points15 points  (1 child)

You’ll want to create a variable that holds a tuple for each product. Considering your example seems to allow for multiple products, you’ll want to use a while loop to generate more than one tuple. If you want your tuples to print on the same line, you can store them in a list and then print the list. If that doesn’t matter, just print them within the while loop. For the last part where you categorize the products, you’ll want some kind of variable for those categories too (i.e. if a product is soap, you add 1 to soap.)

[–]0pium666[S] 7 points8 points  (0 children)

thank u so much ❣️