Horje
string acharacters count in python without using len Code Example
string acharacters count in python without using len
# 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)




Python

Related
python add commas to list Code Example python add commas to list Code Example
how to display values on top of bar in barplot seaborn Code Example how to display values on top of bar in barplot seaborn Code Example
matplotlib despine Code Example matplotlib despine Code Example
python get average list in 2d array Code Example python get average list in 2d array Code Example
how to detect the reaction to a message discord.py Code Example how to detect the reaction to a message discord.py Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
6