Answer to Question #349926 in Python for Darkninja

Question #349926

# Accept string input.

# Display each charter of the string (vertical order)

# Count and display total i charter in the string.


1
Expert's answer
2022-06-13T08:27:26-0400
str_in = input('string is: ')
count = 0
for ch in str_in:
    print(ch)
    if ch.lower() == 'i':
        count += 1
print(f'{count} i charter in the string')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS