Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

length of a string python

# Python program to demonstrate the use of 
# len() method   
  
# Length of below string is 5 
string = "geeks" 
print(len(string)) 
  
# Length of below string is 15 
string = "geeks for geeks" 
print(len(string)) 
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #length #string #python
ADD COMMENT
Topic
Name
8+2 =