String length

Report a typo

Write a program that takes a string and prints its length.

The input string whose length you need to find is already stored inside the string variable, use it in your solution.

Sample Input 1:

foo

Sample Output 1:

3
Write a program in Python 3
string = input()
___

Create a free account to access the full topic