What is LIST comprehensions features of Python used for?
Answer / chaitanya
LIST comprehensions features were introduced in Python version 2.0, it creates a new list based on existing list.
It maps a list into another list by applying a function to each of the elements of the existing list.
List comprehensions creates lists without using map() , filter() or lambda form.
Is This Answer Correct ? | 1 Yes | 0 No |
Which is the invalid variable assignment from the below?
What is flask- wtf? Explain its features.
How do you perform pattern matching in python? Explain?
how do substitute a pattern in a string using re module
How to write a functioning volume for python?
How ternary operators are used in python?
What is a decorator?
What does this mean: *args, **kwargs?
What is automation in python?
What is split() function?
What’s the difference between a list and a dictionary?
Which are the file related libraries/modules in python?