
Ultimate access to all questions.
A data engineer is working on a Python program and intends to execute a specific block of code only under certain conditions. The criteria for executing this block are that the variable day_of_week must be equal to 1, and another variable, review_period, must be set to True. Given this scenario, which of the following control flow statements should the data engineer use to initiate this conditional execution of the code block?
A
if day_of_week = 1 and review_period:
if day_of_week = 1 and review_period:
B
if day_of_week = 1 and review_period = "True":
if day_of_week = 1 and review_period = "True":
C
if day_of_week == 1 and review_period == "True":
if day_of_week == 1 and review_period == "True":
D
if day_of_week == 1 and review_period:
if day_of_week == 1 and review_period:
E
if day_of_week = 1 & review_period: = "True":
if day_of_week = 1 & review_period: = "True":