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

Simple Python Program Code for Snake Game

Project 01: Python Code for Music Recommendation with Explanation

Iris Flowers Classification ML Project with Code