# Accept string input.
# Display each charter of the string (vertical order)
# Count and display total i charter in the string.
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?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments