mardi 20 avril 2021

An album needs 500 stickers that are sold in packs of 6. Estimate the number of packages a person needs to buy to complete the album [closed]

I'm trying to do this exercise:

An album needs 500 stickers that are sold in packs of 6. Estimate the number of packages a person needs to buy to complete the album.

Compare processing time with and without using Numpy.

I am not quite understanding the logic of how to move forward with this exercise. I'm trying to start with some variables that will represent the total number of stickers and the number of stickers I need, I know that for every 1 new sticker I have to subtract 1 from the necessary sticker variable, my problem is to create an empty list to store the numbers of cards drawn. Another problem that I didn't understand very well is about which loop I'm going to use to draw the cards, I don't know if I use the while or if I use an infinite loop...




Aucun commentaire:

Enregistrer un commentaire