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
How many owners does a sole proprietorship have?
never [62]
The sole proprietorship it is the simplist business form under which one can operate a business. the answer is one.
8 0
3 years ago
Select the correct answer.
Marina86 [1]
C: pie chart is the answer to it
4 0
3 years ago
Read 2 more answers
I’m so lost. which username do i do.
koban [17]

Answer:

the username you feel like using

5 0
3 years ago
Read 2 more answers
Prewritten, commercially available sets of software programs that eliminate the need for a firm to write its own software progra
Dovator [93]

Answer:

Software packages.

Explanation:

Prewritten, commonly available software programs that has been applied here as software packages which completely remove the requirement of the organization to compose the own computer programs for all of these functionalities.

Software package is one of the collection of the program inside which the user get all useful applications or software as well as software module that meet their requirements.

6 0
4 years ago
A customer asks you over the phone how much it will cost to upgrade memory on her desktop system to 16 GB. she is a capable wind
SCORPION-xisa [38]

Answer:

The correct option of the following question is c.).

Explanation:

BIOS stands for the Basic Input Output and UEFI stands for the Unified Extensible Firmware Interface.

UEFI is essentially the tiny OS(operating system) that runs on the top of the computer's firmware, and they can do lot more than the BIOS.

BIOS uses the MBR(Master Boot Record) to save information about hard drive data and UEFI uses GUID(Globally Unique Identifier) partition table.

6 0
4 years ago
Other questions:
  • Which of the following qualifies as a teamwork skill? A. Free associating B. Multitasking C. Listening D. Problem solving
    6·1 answer
  • An outdoor products company wants to test a new website design where customers can get information about their favorite outdoor
    6·1 answer
  • whats something that u want to do but ur parents wont allow it like having a phone or going to a college ​
    11·2 answers
  • Why does the phrase "compatibility mode” appear when opening a workbook?
    6·2 answers
  • g Write a program that prompts the user for an integer n between 1 and 100. If the number is outside the range, it prints an err
    5·1 answer
  • When doing black and white photography, which file format should you use if possible? JPEG TIFF PNG RAW
    11·2 answers
  • select all examples of proper keyboarding technique. rest your fingers gently on the home row or home keys. slouch in your chair
    9·2 answers
  • 4. Write a program to calculate square root and<br>cube root of an entered number .​
    6·1 answer
  • Can someone help me with python
    10·1 answer
  • What dose a hard drive do
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!