You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 wpm_test
if ord(key) == 27:
^^^^^^^^
TypeError: ord() expected a character, but string of length 13 found
when i enter a backspace key
The text was updated successfully, but these errors were encountered:
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 wpm_test
if ord(key) == 27:
^^^^^^^^
TypeError: ord() expected a character, but string of length 13 found
when i enter a backspace key
The text was updated successfully, but these errors were encountered: