Question #349926

# Accept string input.

# Display each charter of the string (vertical order)

# Count and display total i charter in the string.


Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS