A simple function to return the number of occurances of a letter in a text. An easier way to implement this would be by using a dictionary :)
P.S sorry if there already is a code snipped like that somewhere.
yeah you're right a quick fix would be to add an if statement in line 19, like
if count > 0: data = [ s, count ] new_data += [ data ]
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.