Find the length of a string

 string = "hello world"

length = len(string)

print("The length of the string is", length)


Comments

Popular posts from this blog

Hello World Python Code with Explanation

Addition of Two numbers in Python

Iris Flowers Classification ML Project with Code