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
- 22 Forums
- 1,969 Topics
- 5,312 Posts
- 0 Online
- 1,288 Members
Our newest member: Haroldecove
Latest Post: Space bug using " & n b s p ; "
Forum Icons:
Forum contains no unread posts
Forum contains unread posts
Topic Icons:
Not Replied
Replied
Active
Hot
Sticky
Unapproved
Solved
Private
Closed