Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers)

Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers)

import random

v1 = random. random()

v2 = random. random()
A . len(random. sample([1,2,3],1)) > 2
B . v1 == v2
C . random.choice{[1,2,3]) > 0
D . v1 < 1

Answer: C,D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments