Question: For Python 3 Write a function that takes a string argument and prints the index, a colon, and the character at that index. Prompt the

For Python 3

Write a function that takes a string argument and prints the index, a colon, and the character at that index. Prompt the user for a string and call the function with the string the user enters as an argument.

Here is how a call to the function should work.

print_it("hello") 0: h 1: e 2: l 3: l 4: o 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!