the program is ending with this error :
Enter your name: dsaf
Press enter to continue.
_Traceback (most recent call last):
File "/home/ayoub/Typing-Test/main.py", line 88, in
wrapper(main)
File "/usr/lib/python3.11/curses/init.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ayoub/Typing-Test/main.py", line 75, in main
wpm_test(stdscr)
File "/home/ayoub/Typing-Test/main.py", line 54, in wpmtest
if ord(key) == 27:
^^^^^^^^
TypeError: ord() expected a character, but string of length 13 found
the program is ending with this error : Enter your name: dsaf Press enter to continue. _Traceback (most recent call last): File "/home/ayoub/Typing-Test/main.py", line 88, in
wrapper(main)
File "/usr/lib/python3.11/curses/init.py", line 94, in wrapper
return func(stdscr, *args, **kwds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ayoub/Typing-Test/main.py", line 75, in main
wpm_test(stdscr)
File "/home/ayoub/Typing-Test/main.py", line 54, in wpmtest
if ord(key) == 27:
^^^^^^^^
TypeError: ord() expected a character, but string of length 13 found
when i enter a backspace key