Post

Khalid | Python Tasks Adventurer ๐Ÿ
Waitโ€ฆ arenโ€™t they the same? ๐Ÿ sample() makes sure you get different items โ€” no repeats allowed. โš ๏ธ But if you ask for more items than are in the list, it will raise an error! ๐ŸŽฒ choices() is totally okay with duplicates โ€” you might see the same item twice (or more). #Python
English
0
0
0
29
๊ณต์œ