Learn

count_char_x()

Instructions

1.

Write a function named count_char_x that takes a string named word and a single character named x as parameters. The function should return the number of times x appears in word.

Folder Icon

Sign up to start coding

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Already have an account?