Skip to content

Commit 045737d

Browse files
authored
list comprehension code
1 parent dfc1ecc commit 045737d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ Examples Questions:
1919
- 14. Use of getpass
2020
- 15. Use of date format
2121
- 16. Add and remove the item from a list
22-
- 17. List comprehension
22+
- 17. List comprehension
23+
- **Basic syntax : new_list = [expression for item in iterable if condition]** [code](https://github.com/pritomsh/30-python-scripts-examples/blob/master/code/17.py)
2324
- 18. Slice data
2425
- 19. Add and search data in the dictionary
2526
- 20. Add and search data in the set

0 commit comments

Comments
 (0)