len() is used to determine the length of a string, a list, an array, and so on. ex: str = “greatlearning”
print(len(str))
o/p: 13