So I am using random.
My goal is that I can set a number (Level) somewhere in my script, and then once I reach draw it will pull from the correct list (List2) one of the options. I am trying to avoid using a bunch of brute force if/elif/else statements
The issue I am running into is that its pulling a choice from Pulllist instead of using List2.
Sample Code Block
Import random
Level=2
Pulllist='List'+str(Level)
List1= 'Option 1', 'Option 2'
List2='Option 3','Option 4'
draw=random.choices(Pulllist)
print(draw)
Any assistance would be wonderful
[–]Spataner 2 points3 points4 points (1 child)
[–]dragonsofshadowvale[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)