Im trying to get a points system going but whenever I run it says:
UnboundLocalError : Local variable 'teambc' refrenced before assignment:
Here is my code:-
teambc = 0
teamac = 0
def bst_q(question, answer):
rq = input(str(question))
if rq == answer:
print ('Correct, Well done')
teambc += 1
elif rq != answer:
print ('wrong. Team A now')
rq = input(str(question))
if rq == answer:
print ('Correct, Well done')
teamac += 1
elif rq != answer:
print ('wrong. Both Wrong!')
bst_q('What is 13 times 2?','26')