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 "This string is smaller then 10"
>>> x = "Follow us on Softhunt.net"
>>> len(x)
25
# 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))
s = "hello"
print(len(s))
# Let's use the len() function
print(len("Hello, World!!"))
# this will return 14
len(string)
string = "Geeksforgeeks"
print(len(string))
# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A
var = "python is amazing programming language"
print(len(var))
# 38
len(string)