frequency meaning

Solutions on MaxInterview for frequency meaning by the best coders in the world

showing results for - "frequency meaning"
Yehudi
12 Jan 2018
1#take user input
2String = input('Enter the string :')
3#take character input
4Character = input('Enter character :')
5#initiaalize int variable to store frequency
6frequency = 0
7#use count function to count frequency of character
8frequency = String.count(Character)
9#count function is case sencetive 
10#so it print frequency of Character according to given Character
11print(str(frequency) + ' is the frequency of given character')