Python_Institute
PCAP-31-03 · Question #3
Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers)
The correct answer is B. v1 == v2 C. random.choice([1,2,3]) >=1. See the full explanation below for the reasoning.
Question
Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers)
Exhibit
Options
- Alen(random.sample([1,2,3],2)) > 2
- Bv1 == v2
- Crandom.choice([1,2,3]) >=1
- Dv1 >= 1
How the community answered
(50 responses)- A6% (3)
- B80% (40)
- D14% (7)
Community Discussion
No community discussion yet for this question.
