Answer Posted / nashiinformaticssolutions
A syntax component called list comprehension makes it easier to create a list using an existing iterable.
For instance:
[i for i in range(1, 10)] = my_list
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to walk through a list in a sorted order without sorting the actual list?
How can you prevent abnormal termination of a python program?
What does len() do?
How will you use python to read a random line from a file?
How do you break a while loop?
Why python is fast?
What is python web application framework?
What is difference between set and list in python?
Explain delegation in python
Why is python good for beginners?
Which is better c++ or java or python?
What are python templates?
Where is python best used?
What is a pil in python?
What language is python written in?