Answer:
def replace_at_index(str, number):
new = str.replace(str[number], "-")
return new
print(replace_at_index("eggplant", 3))
Explanation:
- Create a function called <em>replace_at_index</em> that takes a string and an integer
- Initialize a new variable called <em>new</em>, that will hold the new string
- Replace the character at given index with dash using <em>replace</em> function, it takes two parameters: the first is the character we want to replace, the second is the new character.
- Return the new string
- Call the function with the required inputs
Answer:
He was not allowed on a phone of computer after being arrested.
Explanation:
If you read about it he wasn't even allowed to work at 7-11 because of an electronic cash register.
Answer:
i do not know
Explanation:
but it helps to communication
Answer:
2
Explanation:
The second option is the only one that will work. The last would work but doesn't make the code any shorter.