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 will you share global variables across modules?
How do you count in python?
Describe about the libraries of python?
What is def __ init __ in python?
What are the benefits of flask?
List down some of the pdb commands for debugging python programs?
What is python? What are the benefits of using python? What do you understand of pep 8?
How do you extend in python?
What is the usage of help() function in python?
What are the differences between pyramid, django, and flask?
What is the scipy?
Do lists start at 0 or 1?
How do you get the last value in a list or a tuple?
Mention the concept used in python for memory managing
What are tuples used for?