What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-22 23:05:19
length of a string python
string = "hello" print(len(string)) #>>> Outputs "5" if len(string) >= 10: print("This string is grater then 10") if len(string) <= 10: print("This string is smaller then 10") # Outputs "T... Add solution -
Other 2021-09-08 09:05:02
hekko
# 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" pri... Add solution
Best helpers
Wayne
+5
Abe bubush
+5
Kyle Carlson
+5
Myles
+5
Takje
+5
Trevorj
+5
David
+5
Mitsos
+5
Nuraxi
+5
Ahmed Masud
+5