БГ
Size: a a a
БГ
БГ
ВК
AT
БГ
AT
О
БГ
БГ
БГ
E
БГ
I
AT
def best_treat(*data, **conditions):
return [''.join(x.upper() if x in conditions['to_up'] else x for i, x in enumerate(s) if i not in conditions['remove']) for s in data]
БГ
def best_treat(*data, **conditions):
return [''.join(x.upper() if x in conditions['to_up'] else x for i, x in enumerate(s) if i not in conditions['remove']) for s in data]
БГ
__await__
, который будет возвращать итератор. Но ни слова про то что в этом итераторе должно быть((О
О
def best_treat(*data, **conditions):
return [''.join(x.upper() if x in conditions['to_up'] else x for i, x in enumerate(s) if i not in conditions['remove']) for s in data]
K