I have combined the letters and numbers of an already existing variable. I want to output what that variable is not just the string.
This is all the code but the problem is in the incorrect function
def correct():
global score
print("Correct")
score=score+1
def incorrect():
list=['a',str(Question_Number)]
List=''.join(list)
print("Incorrect it's",List )
def quiz():
global Question_Number
global score
Question_Number=0
score= 0
q1=int(input("How many teams are in the premier league? "))
answer1=20
Question_Number=Question_Number+1
if q1==20:
correct()
elif q1!=20:
incorrect()
quiz()
My aim is for if you get the question wrong it tells you by looking at the current question's answer.