answer.
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
GenaCL600 [577]
1 year ago
12

Write a code segment to change the name of the Thing object something such that the new name consists of the old name with one c

haracter removed at random. For example, if something has name "ABCD", its new name could be set to "ACD". Write the code segment below.
Computers and Technology
1 answer:
ololo11 [35]1 year ago
6 0

Answer:

import random

def name_change( name: list ) -> list :

   choice = random.choice( name )

   choice_index = name.index( choice )

   name.pop( choice_index )

   return name

Explanation:

The python source code above makes use of the random package to select an item from a list in the function "name_change" and the index of that item is gotten fro the list and popped from the list "name", then the name is returned.

To call the function, assign it to a variable and add a list ( must be a list ) as its argument then print the result.

You might be interested in
Which statements describe the advantages of using XML?
lutik1710 [3]
I think the correct answer would be that it facilitates the transport of data. It is a very useful tool in the transport and storage of data. XML, also, uses human language rather than computer language so it can be used easily by new users. 
3 0
2 years ago
Read 2 more answers
Joe, Kate and Jody are members of the same family. Kate is 5 years older than Joe. Jody is 6 years older than Kate . The sum of
mezya [45]

Answer:

5, 10 and 16

Explanation:

The sum of their ages is √961 = 31

If Joe is x years old, the equation that follows is:

x + (x+5) + (x+5+6) = 31

This simplifies to

3x = 31 - 11 - 5 = 15

so x=5

From that you can find

Joe = x = 5

Kate = x+5 = 10

Jody = x+5+6 = 16

5 0
2 years ago
Read 2 more answers
A user complains that his computer automatically reboots after a short period of time. Which of the following computer component
satela [25.4K]

Answer:

C

Explanation:

A faulty motherboard causes a computer to reboot after a short period of time.

The motherboard is a printed circuit board, It transmits power and allows for effective communication to and between the RAM, CPU and all other computer external components. Motherboard is essential for the coordination of all the activities in the computer.

A faulty motherboard could be as a result of a leaking capacitor in it, which is caused by a bad power source.

If that occurs there is need for replacement of the Motherboard to ensure the smooth running of the computer.

8 0
2 years ago
Read 2 more answers
What is a cursor?
Genrish500 [490]
I would say C because it's a movable indicater on a screen
8 0
2 years ago
Read 2 more answers
Which collaboration technology is becoming more and more popular within organizations because it provides a means for forming ad
Leona [35]

Answer:

d) Social networking sites

Explanation:

-Intranet is a network that is created by an organization to share information, tools and different services inside the company.

-Wikis are websites used to share content and knowledge and different users can modify the information.

-VoIP is a technology that allows you to make calls over the internet.

-Social networking sites are online platforms that allow people to connect with organizations and other people, create communities online and share different types of information.

-Unified communications is a system that has different communication methods through a single application.

According to this, the collaboration technology that is becoming more and more popular within organizations because it provides a means for forming ad hoc groups, networking and locating potential business allies is social networking sites.

8 0
1 year ago
Other questions:
  • The ________ program displays graphics and loading screens during the boot process.
    8·1 answer
  • The most direct way for Jonathan to gain on-the-job experience and earn money while attending school is to apply for:
    5·2 answers
  • Witch printer covers a large range of colors than any other printer does
    15·2 answers
  • Data is: a. Information endowed with relevance and purpose b. Set of specific objective facts or observations c. Some informatio
    10·1 answer
  • Software as a Service (SaaS) refers to the use of computing resources, including software and data storage, on the Internet rath
    13·1 answer
  • In this exercise, you will create a couple of helper methods for ArrayLists in a class called ArrayListMethods.
    10·1 answer
  • The code selection above is taken from the Color Sleuth activity you just completed. This selection would count as an abstractio
    12·1 answer
  • int decode2(int x, int y, int z); is compiled into 32bit x86 assembly code. The body of the code is as follows: NOTE: x at %ebp+
    5·1 answer
  • A script sets up user accounts and installs software for a machine. Which stage of the hardware lifecycle does this scenario bel
    5·1 answer
  • What measures are needed to trace the source of various types of packets used in a DoS attack? Are some types of packets easier
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!