Practice Interview Questions
| Question | Status |
|---|---|
Write a Python function that takes a string as input and returns the length of the string (i.e., the number of characters in the string).
Example:
Input: "hello"
Output: 5
Input: "Python programming"
Output: 18
The function should count the number of characters in the string and return that value.
Write a Python function that takes a string as input and returns the length of the string (i.e., the number of characters in the string).
Example:
Input: "hello"
Output: 5
Input: "Python programming"
Output: 18
The function should count the number of characters in the string and return that value.