code:s="Mystring"print(len(s))// it will print 8- Here we use len() function to find the length of the string.
s="Mystring"
print(len(s))
// it will print 8
- Here we use len() function to find the length of the string.