Commit a5022848 authored by Akhil's avatar Akhil

frequency of a character in a string

parent 029c803d
str = 'akhil is here'
count = 0
for letter in str:
if letter == 'i':
count = count +1
print(count)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment