subject

7.2.8: Part 2, Replace a Letter "Write a function called replace_at_index that takes three arguments - a string, an integer (representing an index), and a string. Return a string that is the same as the first string, except with the character at the specified index replaced by the second string.

Ask the user for some text, which index to replace, and what to replace that index with (in that order!).

Print out the result of calling your function.

If the user enters the following input:

Enter a word or phrase: dog
Enter an index value: 0
Enter the new letter: f
The following should be output:

fog"

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 23.06.2019 05:00
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most?
Answers: 2
question
Computers and Technology, 24.06.2019 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
You know the right answer?
7.2.8: Part 2, Replace a Letter "Write a function called replace_at_index that takes three argument...
Questions
question
Mathematics, 16.11.2019 15:31
question
History, 16.11.2019 15:31
question
Mathematics, 16.11.2019 16:31
question
Mathematics, 16.11.2019 16:31
Questions on the website: 13722360