<jupyter_start><jupyter_text>1. Create a program to help the user type faster. Give him a word and ask him to write it five times. check how many seconds it took him to type theh word at each round.  2. In the end, tell the user how many mistakes were made and show a chart with the typing speed evolution during the 5 rounds.<jupyter_code>import matplotlib.pyplot as plt
import time as t

times =[]
mistakes = 0

print("This program will help you to type faster. You will have to type the word 'programming' as fast as you can for five times.")
input("Press enter to continue.")

while len(times) < 5:
    start = t.time()
    word = input('Type the word: ')
    end = t.time()
    time_elapsed = end - start
    
    times.append(time_elapsed)
    
    if(word.lower() != 'programming') :
        mistakes += 1

print('You made ' + str(mistakes) + ' mistake(s).')
print('Now let us see your evolution')
t.sleep(3)

x = [1, 2, 3, 4, 5]
y = times
plt.bar(x, y)
legend = ['1', '2', '3', '4', '5']
plt.xticks(x, legend)
plt.xlabel('Attempts')
plt.ylabel('Time in seconds')
plt.title('Your typing evolution')
plt.show()<jupyter_output>This program will help you to type faster. You will have to type the word 'programming' as fast as you can for five times.
Press enter to continue.
Type the word: programming
Type the word: programming
Type the word: programming
Type the word: programming
Type the word: programming
You made 0 mistake(s).
Now let us see your evolution
{'fraction_non_alphanumeric': 0.10361281526925699, 'fraction_numerical': 0.012269938650306749, 'mean_word_length': 3.7973856209150325, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '508399', 'license': 'MIT', 'n_tokens_mistral': 472, 'n_tokens_neox': 451, 'n_words': 212, 'path': 'Exercise-Time & pyplot.ipynb', 'repo_name': 'BhagyaLakshmiVeeravalli/udemy_python_course', 'size': '1467'}