1 2 3 4 5
from random import sample print sample(['a','b'],2) print sample({9:'c',8:'d'},2)
1 2
['b', 'a'] [8, 9]