1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
geniusboy [140]
3 years ago
13

7.2.7: Part 1, Replace a Letter

Computers and Technology
2 answers:
MrRa [10]3 years ago
6 0

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

GuDViN [60]3 years ago
4 0

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

s = replace_at_index("eggplant", 3)

print(s)

I wrote my code in python 3.8. I hope this helps.

You might be interested in
Switches: Select one:
const2013 [10]

Answer:

b. connect two or more network segments that use different data link protocols

Explanation:

A switch is an analog device that allows to interconnect networks, it is possibly one of the devices with a higher level of scalability. It is important to clarify that a Switch does not only provide connectivity with other networks, nor does it provide connectivity with the Internet, for this purpose a router is necessary.  

6 0
4 years ago
An organization's IRP prioritizes containment over eradication. An incident has been discovered where an attacker outside of the
djyliett [7]

Answer:

a. Remove the affected servers from the network.

Explanation:

An organization's incident response process (IRP) can be defined as all of the process involved in the cleanup and recovery of data when they fall victim to an attack or cybersecurity breach. The incident response process comprises of six (6) important stages and these are;

1. Preparation.

2. Detection and analysis (identification).

3. Containment.

4. Eradication.

5. Recovery.

6. Review of incident activities.

When an organization's IRP prioritizes containment over eradication and an incident is discovered, where an attacker outside the organization installed a crypto-currency mining software on the organization's web servers. Given the organization's stated priorities, the cybersecurity engineer should remove the affected servers from the network.

A containment process is focused on taking steps to eliminate or contain the attack. It basically involves acting swiftly in response to the attack, so as to prevent it from spreading across board or in order to mitigate the damage already caused.

In this context, the cybersecurity engineer should remove the affected servers from the network in accordance with the organization's IRP priority (containment).

<em>Furthermore, he could take a step further to contain the attack by installing a firewall and updating their policies in the Intrusion Prevention System (IPS) of the organization. </em>

5 0
4 years ago
2. A computer is using a fully associative cache and has 216 bytes of memory and a cache of 64 blocks, where each block contains
Irina-Kira [14]

Answer:

2048 blocks

Explanation:

From the information given:

The memory size of a computer with fully associative cache = 2¹⁶ bytes

The no. of blocks in a single cache = 64

In which each block size = 32 bytes

The no of blocks in the main memory = memory size ÷ block size

The no of blocks in the main memory = 2¹⁶ ÷ 32

The no of blocks in the main memory = 2¹⁶ ÷  2⁵

The no of blocks in the main memory = 2^{16-5}

The no of blocks in the main memory = 2¹¹

The no of blocks in the main memory = 2048 blocks

4 0
3 years ago
9. Government and corporate officials concerned about security threats do not bring their own cell phones or laptops when travel
tatuchka [14]

Answer:

True

Explanation:

It is known as Don-Not-Carry rules are implemmented to avoid

-Unauthorized full disk copies (it have been made while the laptop owner was out of the hotel room on overseas travel)

-Laptops steals

- Monitoring by third parties of wireless using.

3 0
3 years ago
Jose wants to be sure maintains a high credit score as he is planning yo buy a new car soon what should he do to ensure his scor
Vika [28.1K]
Make his payments on time
7 0
3 years ago
Read 2 more answers
Other questions:
  • Cameron wants to impress the owner of the company. He creates a graph that shows the improved productivity at the company over t
    13·2 answers
  • Which type of computer do dedicated gamers and video editors prefer?​
    11·1 answer
  • Which of the following is not a protocal? <br><br>A) HTTP<br>B) FTP<br>C) WWW<br>D) HTTPS​
    15·2 answers
  • How can I collect tweets from different accounts concurrently and categorize the tweets in a corpus?
    15·1 answer
  • Fill in the blanks!
    14·1 answer
  • What is the output?<br> answer = "Hi mom"<br> print(answer.lower())
    7·1 answer
  • Create a CourseException class that extends Exception and whose constructor receives a String that holds a college course’s depa
    8·1 answer
  • Who is he can anyone help me​
    14·2 answers
  • What does l m a o actually mean?
    6·1 answer
  • 8. When “arc rated” clothing is worn it must allow for what
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!