Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

taking str input in python and counting no of it

string1 = input('Enter your string: ')


for letter in string1:

    string2 = string1.count(letter,0)

    ss = str(string2)

    print(ss)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #str #input #python #counting
ADD COMMENT
Topic
Name
1+7 =