Answers for "how to create obtain any random 3 items of list in python"

1

how to create obtain any random 3 items of list in python

import random as R
A=['a','b','c','d','e','f','g','h','i','j']
print("\n",R.sample(A,3))
Posted by: Guest on June-09-2021

Code answers related to "how to create obtain any random 3 items of list in python"

Python Answers by Framework

Browse Popular Code Answers by Language