human
Give me a the Python program you requested given the following:
Write a function to count the total number of characters in a string. Here is a solution in Python:
assistant
#Here is the Python program you requested.
 def count_charac(str1):
 total = 0
 for i in str1:
    total = total + 1
 return total