You could try something like this
l1 = ['a','b','c','d'] l2 = [1,2,3,4] combined = list(zip(l1,l2)) import random as rnd print(rnd.choice(combined))
Output:('b', 2)
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags