Double Letters

Published by Helen Yu in

Create a function that takes a word and returns True if the word has two consecutive identical letters.

Examples

double_letters("loop") ➞ True

double_letters("yummy") ➞ True

double_letters("orange") ➞ False

double_letters("munchkin") ➞ False

Notes

N/A

Watch a quick demo on how Edabit works.