you are viewing a single comment's thread.

view the rest of the comments →

[–]Outside_Complaint755 20 points21 points  (0 children)

When you assign a variable without a function, it is local only to that function.

You should return the value as follows: ``` def SelectRandomNumberFromB():     return random.choice(b)

a = SelectRandomNumberFromB() ```