How to randomly select an item from a Python list

preview_player
Показать описание
Use random library and choice or choices. Also can use secrets library choice for cryptographically secure randomness.
Рекомендации по теме