Questions
Please use Python for both Concatenate List Elements Write a function called concat_list that accepts a...

Please use Python for both

Concatenate List Elements

Write a function called concat_list that accepts a list of strings as an argument and returns a string made up of all elements in the list concatenated together in order. For example, if the argument is ['one', 'two', 'three'], the return value would be 'onetwothree'.

Remove List Duplicates

Write a function called remove_duplicates that accepts a list and returns a list containing the same elements in the same order but with duplicates removed. For example, if the argument is [7, 4, 2, 7, 2, 2, 9, 4], the returned list would be [7, 4, 2, 9].

In: Computer Science

1. Find and print the length of the list listTest. 2. We can test if an...

1. Find and print the length of the list listTest.

2. We can test if an item exists in a list or not, using the keyword in

It will give you a boolean response if a certain element is present. Find whether 'p' or 'P' is present in listTest, and print the results.

Print results first for 'p' and then for 'P' as shown in example below.

For example:

Test Result
listTest=['c','i','s','c','1','0','6','P','y','t','h','o','n']
False
True

3. We can delete one or more items from a list using the keyword del. It can even delete the list entirely.

From the list listTest, delete the 4th element.

4. Using the del keyword and/or the slicing operator :, delete the 3rd to 6th elements from the list listTest.

5. We can access a range of items in a list by using the slicing (colon) operator.

There is a predefined list listTest. Use the slicing operator to print the third to fifth elements from listTest as a list.

Note: this does not mean the values at indices 3, 4, and 5!

6. We can access a range of items in a list by using the slicing operator (colon).

7. There is a predefined list listTest. Use the slicing operator to print the elements (as a list) from beginning through the sixth from listTestWe can access a range of items in a list by using the slicing operator (colon).

Given a predefined list listTest, use slicing to print the elements from the fourth through the end from listTest

In: Computer Science

C++ ONLY -- LAB ASSIGNMENT DIFFICULT We have to turn in two files - List.h and...

C++ ONLY -- LAB ASSIGNMENT DIFFICULT

We have to turn in two files - List.h and Lab5.cpp

What should the code for those two files look like?

INSTRUCTIONS AS FOLLOWS:

What Should This Program Do?

Linked List Class

  • Design your own linked list class (List.h) to hold a series of strings.
  • The linked list node should be implemented as a struct.
  • The class should have member functions for appending, inserting, and deleting nodes.
  • You should also have a display function that will traverse the list & display each node’s value.
  • Don’t forget to add a destructor that destroys the list.

DRIVER – Lab5.cpp

Write a driver program (Lab5.cpp) that will do the following:

  1. Create a linked list object
  2. Call the linked list’s append function to append the following strings to your linked list. Afterwards, print to the screen to tell the user that you are inserting several strings to the list.
    1. “boogeyman”
    2. “ghost”
    3. “scarecrow”
    4. “witch”
    5. “zombie”
  3. Now call the linked list’s display function to print the list.
  4. Now call the linked list’s insert function to insert the “vampire” string in the correct sorted position. Print to the screen to tell the user that you are inserting “vampire” in to the list.
  5. Now call the linked list’s display function again to print the list.
  6. Now call the delete function to delete “ghost” from the list. Print to the screen to tell the user that you are deleting “ghost” from the list.
  7. Last, call the linked list’s display function again to print the list.

In: Computer Science

A typical American family uses 1000 kWh of electricity pro 30 days.

A typical American family uses 1000 kWh of electricity pro 30 days.

What is the average RMS current in the 160 V power line to the house?

In: Physics

Which of the following theories is used in the court's analysis provided in Wickard v. Filburn?...

Which of the following theories is used in the court's analysis provided in Wickard v. Filburn?

Cumulative Effect

Substantial Economic Effect Theory

Prohibitive Effect Theory

In: Finance

Find the largest volume V = xyz of a box for which the point (x, y,...

Find the largest volume V = xyz of a box for which the point (x, y, z) is on the ellipsoid x^2 + 4y^2 + 16z^2 = 48

In: Math

1. How do chickens create such a large variety of lambda type light chains from a...

1. How do chickens create such a large variety of lambda type light chains from a single functional V gene segment? Diagram and explain.

In: Biology

Select best choice and breifly explain your answer. 1. Smallest Radius? Sc Ti V 2. Greatest...

Select best choice and breifly explain your answer.

1. Smallest Radius? Sc Ti V

2. Greatest Volume S2- Ar Ca2+

In: Chemistry

Show that a graph T is a tree if and only if for every two vertices...

Show that a graph T is a tree if and only if for every two vertices x, y ∈ V (T), there exists exactly one path from x to y.

In: Advanced Math

How would you, as an administrator of the health care organization, address the implications arising from...

How would you, as an administrator of the health care organization, address the implications arising from the court's decision in the Darling v Charleston community Hospital case

In: Nursing