This program uses a conditional to determine if seafood is safe to consume.
IF (seafood = "mollusk" OR daysFrozen ≥ 7) { rating ← "safe" } ELSE { rating ← "unsafe" }
In which situations will rating be "safe"?
️Note that there may be multiple answers to this question.
Choose all answers that apply:Choose all answers that apply:
1. When sea food is mollusk and day frozen is 1
2.When sea food is mollusk and day froze is 9
3. When see food salmon and day frozen is 7
<em>Did that help?</em>
Answer:
Explanation:
There are different advantages to buy commercial software like:
- Is a system used for other companies, we will have good referents with the feedback of them.
- Support, we should have support twenty-four hours, if a system doesn't have good support, we must not buy the software.
- We can choose software with a lower initial cost, this depends on our needs.
Answer:
def select_short_strings(string_list):
new_list = []
for s in string_list:
if len(s) < 20:
new_list.append(s)
return new_list
lst = ["apple", "I am learning Python and it is fun!", "I love programming, it is easy", "orange"]
print(select_short_strings(lst))
Explanation:
- Create a function called <em>select_short_strings</em> that takes one argument <em>string_list</em>
Inside the function:
- Initialize an empty list to hold the strings that are less than 20
- Inside the loop, check the strings inside <em>string_list</em> has a length that is smaller than 20. If found one, put it to the <em>new_list</em>.
- When the loop is done, return the <em>new_list</em>
- Create a list to check and call the function
Answer:
You didn't give any choice as it looks a multiple choice question
Answer:
the answer to your question is obviously "rational"