Is the Last Character an "N"?

Published by Matt in

Create a function that takes a string (a random name). If the last character of the name is an "n", return True, otherwise return False.

Examples

is_last_character_n("Aiden") ➞ True

is_last_character_n("Piet") ➞ False

is_last_character_n("Bert") ➞ False

is_last_character_n("Dean") ➞ True

Notes

The function must return a boolean value ( i.e. True or False).

Watch a quick demo on how Edabit works.