DEV Community

Discussion on: How to Write a List Comprehension in Python

Collapse
 
renegadecoder94 profile image
Jeremy Grifski • Edited

I think this falls into the modify category, right? You’re applying a more complex expression to each item (in this case a ternary expression).