28/04/2023 6:24 am
Topic starter
Notifications
Clear all
Do you have any idea on List Comprehension ?
0
Can you give some examples please.
Answer
Add a comment
Add a comment
1 Answer
0
28/04/2023 9:54 am
List comprehension is an elegant way to define and create lists based on existing lists. List comprehension is generally more compact and faster than normal functions and loops for creating list. However, we should avoid writing very long list comprehensions in one line to ensure that code is user-friendly.
Add a comment
Add a comment
Forum Information
- 14 Forums
- 1,838 Topics
- 5,054 Posts
- 0 Online
- 1,079 Members
Our newest member: Tyronenodub
Latest Post: loli
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed