Skip to Content
Learn
Code Challenge: String Methods
Count X

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

Already have an account?