If-Else Expressions
Mon 10 August 2026
status = ["even" if x % 2 == 0 else "odd" for x in range(5)]
Score: 10
Category: chapter9_list_comprehension
status = ["even" if x % 2 == 0 else "odd" for x in range(5)]
Score: 10
Category: chapter9_list_comprehension