#Given string whose length is to be found
str1="Python is great!"
print("The given String is:",str1)
 
#calling our len() method to calculate
#the length of str1
print("Length =",len(str1))

0 Comments:

Post a Comment



Newer Post Older Post Home

Blogger Template by Blogcrowds.