Python Convert List en verdadero falso en condición

# Basic syntax:
boolean_list = [True if x == 'condition' else False for x in your_list]
# This converts a list to True/False based on the condition specified
Charles-Alexandre Roy