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
VikaD [51]
3 years ago
13

Write a function named "list_concat" that takes a list of strings as a parameter and returns the concatenation of all the values

in the list as a single string with each value separated by a space. For example, if the input is ["limit", "break", "ready"] the output should be "limit break ready"
Computers and Technology
1 answer:
Marina CMI [18]3 years ago
7 0

Answer:

Following are the program in python language:

def list_concat(ls): #define function

if(len(ls) == 0): #set if condition

return ""

res = ""

for x in ls: #set for loop

res += x + " "

return res[:len(res)-1] #removing the extra spaces from list

ls = ['limit','break','ready'] #initialize the value in list

print(list_concat(ls)) #call the function

Output:

limit break ready

Explanation:

Here we declared a function "list_concat()" in which we pass an argument "ls" then check if condition that check the length of list .We also Iterating  the loop in that function  res[:len(res)-1] statement removes the extra space from the list and finally print the list

You might be interested in
13) When developing film, how do you dispose of fixer as opposed to developer?
MAVERICK [17]

Answer:

B) Developer is poured down the drain while fixer can be reduced

Explanation:

The effluents produced during photographic processing includes, wash water, bleach, fixer, and developer

The developer is an alkaline solution, with a pH of approximately 10.0, while the pH of the fixer is about 4.3, it is therefore, acidic

The rate of discharge of the developer to the fixer is 2 to 1, and the exhausted developer, fixer and process effluents combined are neutral and can be handle by the the treatment works and the drain pipes

Fixer which remain clear can be reused for more than a day, while the spent basic Developer and the acidic Spent Stop Bath can be combined to form a neutral solution, having a pH of approximately 7, which make them less hazardous to be disposed off down the sink into the drain

Therefore, <em>developer is poured down the drain while fixer can be reused</em>

6 0
3 years ago
Krystal recorded her times for all her cross-country meets this season. To sort her data showing the lowest times first, what wi
devlian [24]
Sort ascending would be the correct one, since you are going from the lowest value to the highest
3 0
3 years ago
Read 2 more answers
How is data written to a blockchain?
NikAS [45]
<h2>APPEND ONLY</h2>

Unlike traditional databases, blockchain is designed to be an "append-only" data structure. That means you can only append new data in the form of additional blocks, which will then be chained together with previous blocks of data. All data is permanently stored across more nodes and cannot be altered.

6 0
3 years ago
Help me with this please. I'll mark Brainiest
S_A_V [24]
What do you need help with?
3 0
3 years ago
What is the difference between it and​ is?
yulyashka [42]
C trust me done this
3 0
3 years ago
Other questions:
  • Which of the following is an advantage of algorithmic thinking? Select all that apply.
    6·1 answer
  • Which person would be the best fit for a career in the information technology field?
    14·1 answer
  • What is the process called if you are erasing data on your hard drive from a MAC
    12·1 answer
  • If your DTP document contains watermarks on every page, where can you place them?
    10·1 answer
  • When defining a variable to be used to hold textual information containing multiple characters (letters, numbers, and/or symbols
    5·1 answer
  • Please help I don’t know
    5·1 answer
  • What is text formatting/
    5·1 answer
  • _ is a term used for license like those issues by creative commons license as an alternative to copyright
    8·1 answer
  • Complete the sentence.
    10·1 answer
  • True or false windows 98 and windows xp are examples of an operating system?
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!