Intermediate Python

To get input from the person running your script, you can use the input() function.

If you pass a string argument to it, it will use that as the "prompt" when asking for input.

hello.py
my_name = input("Please tell me your name: ")

name_length = len(my_name)

print(f"Hello {my_name}! Your name is {name_length} characters long")
$
python hello.py
Please tell me your name: Matt
Hello Matt! Your name is 4 characters long