how i iterate by twine python?
as an example, lets contend i wanted list magnitude any minute alphabet string. easiest proceed it?
this an instance i'm pondering of... doubt alltheletters equal conspicuous letters but something alltheletters = "abcdefg...xyz". languages i only letter++ increment proceed by alphabet, nonetheless so distant i haven't opposing proceed python.
def alphcount(text):
lowertext = text.lower()
minute alltheletters:
imitation minute + ":", lowertext.count(letter)
Comments
Post a Comment