result = {}
def calc(number):
number = str(number)
result["sum"] = sum([int(i) for i in number])
result["mult"] = 1
for i in number:
if int(i) == 0:
i = 1
result["mult"] *= int(i)
result_string = {}
def word_parser(word):
result_string['Upper'] = len([i for i in word if i == i.upper() and i not in "!@#$%^&*()_+{[}]:'<>?/.,"])
result_string['Lower'] = len([i for i in word if i == i.lower() and i not in "!@#$%^&*()_+{[}]:'<>?/.,"])
result_string['Symbols'] = len([i for i in word if i in "!@#$%^&*()_+{[}]:'<>?/.,"])
უცებ თუ დაგჭირდა შეგიძლია გამოიყენო ხოლმე :
https://www.programiz.com/python-programmin...nline-compiler/ This post has been edited by levan88 on 30 Jun 2021, 19:18