<reponame>edzya/Python_RTU_08_20<filename>Diena_8_dictionaries/uzd1_g2.py
# 1. <NAME> # Marim

def get_char_count(text):
    library_new = dict(
        zip(list(text), [list(text).count(i) for i in list(text)]))
    # print(list(zip(list(text), [list(text).count(i) for i in list(text)])))
    print(library_new)


def main():

    print(get_char_count(
        input("Ievadiet tekstu, kuru jāpārvērš vārdnīcā: ")
    ))


if __name__ == "__main__":
    main()

# 1. <NAME> # Marim

def get_char_count(text):
    library_new = dict(
        zip(list(text), [list(text).count(i) for i in list(text)]))
    # print(list(zip(list(text), [list(text).count(i) for i in list(text)])))
    print(library_new)


def main():

    print(get_char_count(
        input("Ievadiet tekstu, kuru jāpārvērš vārdnīcā: ")
    ))


if __name__ == "__main__":
    main()
# 1. <NAME> # Marim # print(list(zip(list(text), [list(text).count(i) for i in list(text)])))