Код: Выделить всё
for Ch from 'a' to 'z' inclusive: #
f(Ch)
Код: Выделить всё
def Pangram(Str):
''' Returns True if Str contains the whole alphabet, else False '''
for Ch from 'a' to 'z' inclusive: #
M[Ch] = False
for J in range(len(Str)):
Ch = lower(Str[J])
if 'a'
Подробнее здесь: [url]https://stackoverflow.com/questions/514448/python-loop-over-consecutive-characters[/url]
Мобильная версия