hp_character = input("Who's your favorite Harry Potter Character? ")
print(len(hp_character) + " is the number of characters.")
AIs say that it should be valid for versions 3.8 and newer, but VS Code says that it is a TypeError. It should say something like "10 is the number of characters."