title: I've write a code and I'm getting error while using matplotlib in the editor I am getting invalid syntax error, does anyone know why?
body: <p>import matplotlib.pyplot as plt</p>
  
  <p>import time as t</p>
  
  <p>times = []
  mistake = 0 </p>
  
  <p>print("you will have to type the word 'programming' as fast as you can for five times")</p>
  
  <p>input("Press Enter to Continue.")</p>
  
  <p>while len(times) &lt; 5</p>
  
  <pre><code>start = t.time()
  
  word = input("Type the Word: ")
  
  end = t.time()
  
  time_elapsed = end - start
  
  times.append(time_elapsed)
  
  if(word.lower()! = "programming"):
  
     mistake += 1
  </code></pre>
  
  <p>print("You made" + str(mistake) + "mistakes.")</p>
  
  <p>print("Now let's See your evolution")</p>
  
  <p>t.sleep(3)</p>
  
  <p>x = [1,2,3,4,5]</p>
  
  <p>y = times</p>
  
  <p>plt.plot(x,y)</p>
  
  <p>legend = ["1","2","3","4","5"]</p>
  
  <p>plt.xticks(x,legend)</p>
  
  <p>plt.ylabel("Time in Seconds")</p>
  
  <p>plt.xlabel("Attempts")</p>
  
  <p>plt.title("Your Typing Evolution")</p>
  
  <p>plt.show()</p>