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
sergey [27]
3 years ago
15

g Given a character and a list of strings, find strings that do not contain the given character. See the example below. $ (Find

88 (list (list 77 73) (list 89))) ((77 73) (89)) $ (Find 88 (list (list 7
Computers and Technology
1 answer:
Alex_Xolod [135]3 years ago
5 0

Answer:

The solution code is written in Python 3

  1. def findStr(stringList, c):
  2.    output = []
  3.    for currentStr in stringList:
  4.        if c not in currentStr.lower():
  5.            output.append(currentStr)
  6.    return output  
  7. strList = ["Apple", "Banana", "Grape", "Orange", "Watermelon"]
  8. print(findStr(strList, "g"))

Explanation:

Firstly, we can create a function and name it as findStr which takes two input parameters stringList and a character, c (Line 1).

Create a list that will hold the list of strings that do not contain the input character (Line 2).

Create a for-loop to traverse through each string in the list (Line 3).

In the loop, check if the input character is not found in the current string (Line 4), if so, add the current string to the output list (Line 5). Please note we also need to convert the current string to lowercase as this program should ignore the casing.

After completion the loop, return the output list (Line 7).

We can test the function using a sample string list and input character "g" (Line 9 - 10). We shall get the output as follows:

['Apple', 'Banana', 'Watermelon']

You might be interested in
Why do we need to measure the amperage of an electric current?​
Sonbull [250]

Answer:

Explanation:It is very important to have a way to measure and quantity the flow of electrical current. When current flow is controlled

It can be used to do useful work. The flow of current is measured in pampered. The term amps is often used for short.

5 0
3 years ago
Which of the following is not an advanced strategy you may use to help you conduct a search on the Internet?
Leno4ka [110]

Answer:

3-using a wild card in your search

7 0
4 years ago
As a prospective student, what is the best reason to request an interview with your college application?
weqwewe [10]

Answer: The correct answer is A. I just answered this question myself!

6 0
3 years ago
Human-centered technology often recommends _______ao
lidiya [134]

Answer:

Creating objects which people are going to interact with, designers have to be aware of those traits and take them into account in the process. ... Continuing the theme, user-centered design is more focused and concise version of human-centered design with deeper analysis of target audience.The user interacts directly with hardware for the human input and output such as displays, e.g. through a graphical user interface. The user interacts with the computer over this software interface using the given input and output (I/O) hardware.Human-centered design is a creative approach to problem solving and the backbone of our work at IDEO.org. It's a process that starts with the people you're designing for and ends with new solutions that are tailor made to suit their needs. ... Human-centered design consists of three phases.

Explanation:

3 0
3 years ago
Read 2 more answers
What is computer ?how does it work​
Lorico [155]

Answer:

A computer is an electronic device for storing and processing data, typically in binary form, according to instructions given to it in a variable program. It receives data through an input unit based on the instructions it is given and after it processes the data, it sends it back through an output device.

Explanation:

5 0
4 years ago
Read 2 more answers
Other questions:
  • A(n)…………is the interface used toconnect external devices to the computer.
    5·1 answer
  • Consider the following method:
    8·2 answers
  • What are the nicknames for the first generation computers
    8·1 answer
  • Universal Containers has a requirement to integrate Salesforce with an external system to control record access. What option sho
    11·1 answer
  • What is a router in computer networks?
    8·1 answer
  • web pages within the same website often have different blank because they have different blank A) home pages, urls B) goals, sou
    12·1 answer
  • How can netiquette help you communicate when texting or instant messaging?
    6·1 answer
  • The three activities in an information system that produce the information organizations use to control operations are:a.informa
    9·2 answers
  • To move to the beginning of the line with the keyboard, press the _______ key(s).
    6·1 answer
  • A presentation is widely used to present ______ and ______ effectively​
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!