Login and get coding
In this Bite you will write a function that takes a word and determines if it can be written with only the left or right hand, or if both hands are needed.
We will assume a keyboard with a QWERTY layout and you only have to look at the A-Z chars which we have conveniently mapped to left and right hand chars as per:
(Source: Computer Hope)
RIGHT_HAND_CHARSin the function. As the return type can only hold three possible values (left, right, both), we created an
Handwhich you should use in the return.
Have fun and keep calm and code in Python!
44 out of 46 users completed this Bite.
Will you be Pythonista #45 to crack this Bite?
Resolution time: ~25 min. (avg. submissions of 5-240 min.)