Created
December 16, 2022 04:34
-
-
Save pycoders0000/efb4a5ac1f2e2d98c27ba32f697b9d50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -- 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