Explanation:
i do that too in my computer class and i get the answers from yt so go to yt and look up python rock paper scissors
Answer:
Explanation:
The code provided aside from some minor errors (fixed version down below) is correct, but it will never be able to accomplish what is being asked in the question. This is because this code is simply copying and returning the exact same list that is passed as an argument, because it is looping through it and comparing its own elements. In order to accomplish what is asked in the question, two lists need to be passed as parameters. The first would be the original list, and the second would be a list of test elements that will be used to compare and see if they exist in the original list. This would allow us to create a new list with only the elements that existed in the original list.
def filter_only_strs(lst):
for x in lst:
if not isinstance(x, str):
lst.remove(x)
return lst
Answer:
can include names and addresses of buyers of the product.
A medical record can include consumer buying behaviors of prescriptions.
I’m confused
Can you explain what you mean by that