length of 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 "This string is smaller then 10"
                                
                            length of 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 "This string is smaller then 10"
                                
                            python length
# to get the length of a string or array, use the len() method
my_string = "Hello World"
my_list = ["apple", "banana", "orange"]
print(len(my_string)) # outputs 11
print(len(my_list)) # outputs 3
                                
                            Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us