I'm very new to Python and will probably get down voted for such a simple question but I can't seem to find the answer on my own. I'm trying to use random.choice to choose a random result from a random list. I understand how to add weight to each item in a list but that's not what I'm trying to do. I want to add weight to each list so that results appear from certain lists more often than others. My function is below. My apologies in advance for any formatting issues!
import random
def roll_item():
common = ["C1", "C2", "C3"]
uncommon = ["U1", "U2", "U3"]
rare = ["R1", "R2"]
x = ([common], [uncommon], [rare])
y = random.choice(x)
for items in y:
print(random.choice(items))
roll_item()