79560354

Date: 2025-04-07 16:17:25
Score: 1
Natty:
Report link

A better way is to use

random.choices(items, k=5)

Replace k with the number of samples / choices you want to draw out of the population.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sandeep Kulkarni