Question: Write a Python function that: (a) Takes a string as a parameter. (b) Prints out each character followed by their index and the number of
Write a Python function that: (a) Takes a string as a parameter. (b) Prints out each character followed by their index and the number of times character appears in the string (ignoring capitalization). (c) For example, if you passed in 'HelloOo!!' to the function, the result would be: H (0) - 1 e (1) - 1 l (2) - 2 l (3) - 2 o (4) - 3 O (5) - 3 o (6) - 3 ! (7) - 2 ! (8) - 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
