Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
A data engineer is tasked with executing the final segment of a Python script under specific conditions: the variable day_of_week must be 1 and review_period must be True. Which line of code correctly initiates this segment?
day_of_week
review_period
A
if day_of_week = 1 and review_period = “True“
B
if day_of_week == 1 and review_period == “True“
C
if day_of_week = 1 & review_period: = “True“
D
if day_of_week == 1 and review_period
E
if day_of_week = 1 and review_period