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
Hey there! Hello!
The exclusive file type for Microsoft Word documents is .docx. You can see the attachment showing all the information you need to know about the example Word document I created. As long as you are using Word, the file type will be the same no matter what type of computer you're on or what it's running, so you don't need to worry about it being different for me on Mac than it might be for you on Windows.
Hope this helped you out! Feel free to ask me any additional questions you may have. :-)
The action that an operating system performs is that it facilitates a computer's basic functions between hardware and software.
<h3>What is the purpose of an operating system in a computer?</h3>
An operating system (OS) is known to be a term that is used in computing and it is said to be one which the program, after being started is said to be loaded into the computer using the boot program.
It is one that helps to handle all of the other application programs in a computer.
The application programs is known to also make use of the operating system and as such, The action that an operating system performs is that it facilitates a computer's basic functions between hardware and software.
Learn more about operating system from
brainly.com/question/22811693
#SPJ1
Vertical alignment determines the position of the text within a section of a document relative to the top and bottom margins, and is often used to create a cover page.