Good day. I need help from those who know about my problem. How to get the total length of a string. I am trying to code that will get a total length of a string. However, if there one or more that have the same value, then it will not be counted.
def count():
str1 = "abcdeb";
print "String is : "+str(str1);
print "Length is : ", len(str1);
I want to have an output of:
String is : abcdeb
Length is : 5;
since, there are 2 values of "b", then the other b is not counted. How will I do that?. I can't configure it. Thank you again in advance.