/
rnekrasov
/
Python
Обзор
Документация
Войти
/
rnekrasov
/
Python
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
length.py
8 строк
248 B
slowy07
refactor: clean code
30 янв 2022, 04:33
30 янв 2022, 04:33
f0af0c4
Код
Авторство
О чём код?
# User inputs the string and it gets stored in variable str str = input("Enter a string: ") # counter variable to count the character in a string counter = 0 for s in str: counter = counter + 1 print("Length of the input string is:", counter)