Generation

generate functionThu, 01 Dec 2022

Code to count number times letter is repeated in word

def letter_count(word, letter): count = 0 for l in word: if (l == letter): count += 1 return count letter_count("Hello", "l")

Want to kickstart your project?Use the new AI Studio to create your code