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

Iris Flowers Classification ML Project with Code

Simple Python Program Code for Snake Game

Linear Regression Model for House Price Prediction in Python