a) [x<0 in l]
b) [x for x<0 in l]
c) [x in l for x<0]
d) [x for x in l if x<0]
Write the list comprehension to pick out only negative integers from a given list ‘l’.
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write the list comprehension to pick out only negative integers from a given list ‘l’.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!