subject
Computers and Technology, 23.05.2020 22:04 hajoshh

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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 02:00
Which of the following is not a source of sustainable raw materials? a) coal mine b) flick of sheep c) cotton plantation d) line forest.
Answers: 2
question
Computers and Technology, 23.06.2019 21:20
For positive constants a and b, the force between two atoms in a molecule is given f(r) = −a r2 + b r3 , where r > 0 is the distance between the atoms. note: a and b are upper case letters. (a) find f '(r) = (b) find the critical point for f(r). r = (c) find f ''(r) = (d) find the value of r so that f ''(r) = 0.
Answers: 1
question
Computers and Technology, 23.06.2019 21:50
Description: write function lastfirst() that takes one argument—a list of strings of the format "lastname, firstname" —and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
Answers: 2
question
Computers and Technology, 24.06.2019 08:00
Java the manager of a football stadium wants you to write a program that calculates the total ticket sales after each game
Answers: 1
You know the right answer?
Write a function called replace_at_index that takes three arguments - a string, an integer (represen...
Questions
question
Mathematics, 18.01.2021 16:20
question
History, 18.01.2021 16:30
question
Biology, 18.01.2021 16:30
question
Mathematics, 18.01.2021 16:30
Questions on the website: 13722361