7.2.7: Part 1, Replace a Letter
2 answers:
def replace_at_index(txt, ind):
new_txt = ""
for x in range(len(txt)):
if x == ind:
new_txt += "-"
else:
new_txt += txt[x]
return new_txt
print(replace_at_index("eggplant", 3))
I wrote my code in python 3.8. I hope this helps.
Answer:
def replace_at_index(string, index):
return string[0:index]+"-"+string[index+1:]
replaced_word = replace_at_index("house", 0)
print(replaced_word)
Explanation:
Simpler version
You might be interested in
answer:
yes....................
The page break is the command on the page layout ribbon enables a user to mark where a new page will begin on the printed copy
When you have you presentation open, go to
Insert > Header & Footer.
I would go with A) The Internet
I hope that turns out well for you. Good luck! (:
Ask for detalls follow report