livepython.net

36. Python Program to Count the Characters in a Word

EasyStrings

Overview

Count characters with len() and show the result in a sentence.

Problem Statement

Store "LivePython" in a variable called word. Print a sentence that says how many characters it has, using len().

LivePython has 10 characters

Input

No input is required for this question.

Output

LivePython has 10 characters

Learn this firstChapter 5 · Python Strings for Beginners: Join, Repeat and f-strings
solution.py
# write your code here

EXPECTED OUTPUT

1LivePython has 10 characters

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.