title: My code does not run and i can't seem to get the score to print
body: <pre><code>def tf_quiz():
  
      user_name
      user_year
  
  print(&quot;Welcome to my true or false divison quiz&quot;) #welcome message
  
  user_name=str(input(&quot;please enter in your name&quot;)) #asks/stores user input
  
  user_year=str(input(&quot;please enter in your year&quot;)) #asks/stores user input
  
  print(&quot;all you have to do is type T/F for each question&quot;) #explaning the task
  
  print (&quot;12/3 = 4&quot;) #asks the question
  if correct_ans == &quot;T&quot; : #correct answer
              print (&quot;Correct!&quot;) #prints correct if the answer is correct
              score = score +1
  if correct_ans == &quot;F&quot; : #incorrect answer
              print (&quot;incorrect!&quot;)  #prints incorrect if the answer is incorrect
  
  print (&quot;42/6 = 7&quot;)
  if correct_ans == &quot;T&quot; :
              print (&quot;Correct!&quot;)
              score = score +1
  if correct_ans == &quot;F&quot; :
              print (&quot;incorrect!&quot;)  
      
  print (&quot;18/3 = 4&quot;)
  if correct_ans == &quot;F&quot; :
              print (&quot;Correct!&quot;)
              score = score +1
  if correct_ans == &quot;T&quot; :
              print (&quot;incorrect!&quot;)  
  
  print (&quot;40/5 = 9&quot;)
  if correct_ans == &quot;F&quot; :
              print (&quot;Correct!&quot;)
              score = score +1
  if correct_ans == &quot;T&quot; :
              print (&quot;incorrect!&quot;) 
  
  print (&quot;90/10 = 9&quot;)
  if correct_ans == &quot;T&quot; :
              print (&quot;Correct!&quot;)
              score = score +1
  if correct_ans == &quot;F&quot; :
              print (&quot;incorrect!&quot;) 
  
  print (&quot; 16/2= 4&quot;)
  if correct_ans == &quot;F&quot; :
              print (&quot;Correct!&quot;)
              score = score +1
  if correct_ans == &quot;T&quot; :
              print (&quot;incorrect!&quot;)
  
  print (&quot;9/3 = 3&quot;)
  if correct_ans == &quot;T&quot; :
              print (&quot;Correct!&quot;)
              score = score +1
  if correct_ans == &quot;F&quot; :
              print (&quot;incorrect!&quot;)
  
  print (&quot;45/9 =5 &quot;)
  if correct_ans == &quot;F&quot; :
              print (&quot;Correct!&quot;)
              score = score +1
  if correct_ans == &quot;T&quot; :
              print (&quot;incorrect!&quot;)
  
  print (&quot;81/9 = 7&quot;)
  if correct_ans == &quot;F&quot; :
              print (&quot;Correct!&quot;)
              score = score +1
  if correct_ans == &quot;T&quot; :
              print (&quot;incorrect!&quot;)
  
  print(&quot;49/7 = 7&quot;)
  if correct_ans == &quot;T&quot; :
              print (&quot;Correct!&quot;)
              score = score +1
  if correct_ans == &quot;F&quot; :`enter code here`
              print (&quot;incorrect!&quot;)
  
  #Main program
  tf_quiz()
  
  </code></pre>
  <p>I can't print the name and score for the user using this code,
  and it also does not run. I have tried multiple different things but i still cannot get it to work no matter what i do to try and fix it. the code also will not run and it will not give me any problems or ways to make it run.</p>