String counts python with a function and input

I have this task:
Create a program that counts and displays in the terminal the number of characters of the following words. The program must contain at least one function.

This is what i created:

value = input("Write your word here:")
def word(value):
    word = 0
    for i in len(int(value)):
        print(value)