Python 3,(削除) 28 (削除ここまで) 27 bytes
lambda e:"(|)D".find(e[-1])
Because we don't care about the eyes/nose, we can just look at the mouth (the last character) and find its index in a string with all the mouths, ordered from saddest to happiest :) Thanks @Surculose Sputum!
Python 3, 27 bytes
lambda e:"(|)D".find(e[-1])
Because we don't care about the eyes/nose, we can just look at the mouth (the last character) and find its index in a string with all the mouths, ordered from saddest to happiest :)
Python 3,(削除) 28 (削除ここまで) 27 bytes
lambda e:"(|)D".find(e[-1])
Because we don't care about the eyes/nose, we can just look at the mouth (the last character) and find its index in a string with all the mouths, ordered from saddest to happiest :) Thanks @Surculose Sputum!
Python 3, 2827 bytes
lambda e:"(|)D".indexfind(e[-1])
Because we don't care about the eyes/nose, we can just look at the mouth (the last character) and find its index in a string with all the mouths, ordered from saddest to happiest :)
Python 3, 28 bytes
lambda e:"(|)D".index(e[-1])
Because we don't care about the eyes/nose, we can just look at the mouth (the last character) and find its index in a string with all the mouths, ordered from saddest to happiest :)
Python 3, 27 bytes
lambda e:"(|)D".find(e[-1])
Because we don't care about the eyes/nose, we can just look at the mouth (the last character) and find its index in a string with all the mouths, ordered from saddest to happiest :)
Python 3, 28 bytes
lambda e:"(|)D".index(e[-1])
Because we don't care about the eyes/nose, we can just look at the mouth (the last character) and find its index in a string with all the mouths, ordered from saddest to happiest :)
Python 3, 28 bytes
lambda e:"(|)D".index(e[-1])
Because we don't care about the eyes/nose, we can just look at the mouth (the last character) and find its index in a string with all the mouths, ordered from saddest to happiest :)