Skip to content

These functions take a string named _word_ and a single or multi character named _x_ as parameters. The function should return the number of times _x_ appears in _word_.

Notifications You must be signed in to change notification settings

candytale55/count_x_in_word_Py_3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

count_x_in_word_Py_3

These functions take a string named word and a single or multi character named x as parameters. The function should return the number of times x appears in word.

Description

The purpose of the project is just personal learning.

count_char_x returns the number of times x appears in word and works just with a single character named x.

count_multi_char_x returns the number of times x appears in word and it works when x is multiple characters long.

To-do list:

  • Do count_char_x only works with a single character x? Haven't test it, must check it out.
  • For searching both uppercase/lowercase
  • Symbols and spaces

Technologies

  • Python 3

Setup

NA - It's only coding examples, there's no setup.

Status

Project is: finished, - may come back and improve it, or not.

References

Based on Codecademy's Learn Python 3 course, Code Challenges: String Methods exercises

About

These functions take a string named _word_ and a single or multi character named _x_ as parameters. The function should return the number of times _x_ appears in _word_.

Topics

Resources

Stars

Watchers

Forks

Languages