In this program, we will take a string as input and calculate the length of string.
Steps to solve the program
- Take a string as input.
- Use the in-built len function to calculate the length of the string.
- Prin the output.
#Input string
string="python"
#Printing output
print(len(string))
Output :
6