Develop a Python program that tells how many characters are there in a given string.
My name is John
# Python program to count the number of characters in a string

string = input('Enter a string: ')

count = 0
for char in string:
    count += 1

print(f'The string contains {count} characters.')