Answer:
Please look for your answer on Stack Overflow, it's way better.
Explanation:
Answer:
The solution code is written in Python 3
- def findStr(stringList, c):
- output = []
- for currentStr in stringList:
- if c not in currentStr.lower():
- output.append(currentStr)
- return output
-
- strList = ["Apple", "Banana", "Grape", "Orange", "Watermelon"]
- 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']
Answer:
character
Explanation:
character is the smallest unit of an information. It is also equivalent to one byte.
field is the collection of the combination of characters that make up a single fact.
record is the collection of related fields.
Plagiarism is a crime, flat out. It is unethical and immoral to copy, verbatim, another persons work and claim it as your own, especially for scholastic uses. In order to avoid plagiarism, it is important that we give accurate references and paraphrase, rather that copy and paste information. It is important to consider the widespread effect of plagiarism. It effects all involved: The student, the owner of the information, the instructor, and even the site from which the information was stolen. Use the proper channels and be honest when completing assignments goes a long way. We must do what we can to prevent plagiarism, starting with ourselves and our own research. <span />