GlobalrankerFollowJan 24, 2021·1 min readWrite a Python program to calculate the length of a string,# Python program to calculate the length of a string.def string_length(str1):count = 0for char in str1:count += 1return countprint(string_length(‘Python Program’))