Skip to content

Instantly share code, notes, and snippets.

@pycoders0000
Created December 16, 2022 04:34
Show Gist options
  • Save pycoders0000/efb4a5ac1f2e2d98c27ba32f697b9d50 to your computer and use it in GitHub Desktop.
Save pycoders0000/efb4a5ac1f2e2d98c27ba32f697b9d50 to your computer and use it in GitHub Desktop.
# -- coding: utf-8 --
# @Date : 2022-07-25 03:00:05
# @Author : pycoder.py
# @GitHub : (https://github.com/pycoders0000)
# @Twitter : (https://twitter.com/pycoder0000)
# @Instagram : (https://www.instagram.com/pycoder.py/)
# @version : 1.0.0
test_str = "pycoder.py"
counter = test_str.count('p')
print("Number of 'p' in (pycoder.py) is :" + str(counter))
# Demonstrating occurrence frequency using count() function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment