write a python program to store informatic practices in a list and display for from same list using slicing
Answers
Answered by
0
Answer:
List comprehension is an elegant way to define and create a list in python. We can create lists just like mathematical statements and in one line only. The syntax of list comprehension is easier to grasp.
A list comprehension generally consist of these parts :
Output expression,
Input sequence,
A variable representing a member of the input sequence and
An optional predicate part.
Similar questions
Hindi,
2 months ago
Math,
2 months ago
World Languages,
2 months ago
Math,
5 months ago
India Languages,
5 months ago