Tag: list

2937 How do I check if a list is empty? 2008-09-10T06:20:11.000

2855 Difference between append vs. extend list methods in Python 2008-10-31T05:55:36.407

2758 Accessing the index in 'for' loops? 2009-02-06T22:47:54.433

2460 Understanding Python's slice notation 2009-02-03T22:31:02.787

2408 Finding the index of an item given a list containing it in Python 2008-10-07T01:39:38.437

2286 How to make a flat list out of list of lists? 2009-06-04T20:30:05.527

1847 How to clone or copy a list? 2010-04-10T08:49:46.673

1801 How to concatenate two lists in Python? 2009-11-12T07:04:09.050

1700 How do you split a list into evenly sized chunks? 2008-11-23T12:15:52.050

1653 How to get the number of elements in a list in Python? 2009-11-11T00:30:54.670

1506 Getting the last element of a list in Python 2009-05-30T19:28:53.667

1455 Python join: why is it string.join(list) instead of list.join(string)? 2009-01-29T22:45:13.697

1454 How do I sort a list of dictionaries by a value of the dictionary? 2008-09-16T14:27:47.470

1398 How to randomly select an item from a list? 2008-11-20T18:42:21.817

1171 How to count the occurrences of a list item? 2010-04-08T13:30:00.120

1116 How do I remove an element from a list by index in Python? 2009-03-09T18:16:11.060

1067 Why not inherit from List<T>? 2014-02-11T03:01:36.297

961 How to Sort a List<T> by a property in the object 2010-07-22T13:13:25.497

884 What's the difference between lists and tuples? 2009-03-09T15:41:25.767

830 Convert two lists into a dictionary in Python 2008-10-16T19:05:47.233

804 How can I reverse a list in Python? 2010-10-15T06:59:39.417

800 Converting array to list in Java 2010-04-09T12:20:20.827

751 Is there a simple way to delete a list element by value? 2010-05-08T07:48:28.700

694 Removing duplicates in lists 2011-11-01T00:45:24.203

664 list comprehension vs. lambda + filter 2010-06-10T10:14:00.497

640 How do you remove duplicates from a list whilst preserving order? 2009-01-26T15:43:58.483

630 How to make a new List in Java 2009-05-13T15:12:45.443

613 Why is [] faster than list()? 2015-05-13T13:16:22.850

588 How to convert a Map to List in Java? 2009-06-22T11:45:28.380

580 How to sort a list of objects based on an attribute of the objects? 2008-12-31T16:41:32.833

574 How do I join two lists in Java? 2008-10-09T23:17:43.260

573 Shuffling a list of objects 2009-06-10T16:56:59.503

568 Fastest way to check if a value exist in a list 2011-09-27T15:23:26.843

564 Get difference between two lists 2010-08-11T19:38:10.443

561 Using LINQ to remove elements from a List<T> 2009-05-12T15:56:24.570

560 IEnumerable vs List - What to Use? How do they work? 2010-09-02T15:05:05.213

559 How to remove the first Item from a list? 2010-12-13T07:38:38.647

517 How to convert list to string 2011-04-11T08:51:08.083

515 Remove empty strings from a list of strings 2010-10-02T11:21:10.247

497 Difference between del, remove and pop on lists 2012-07-17T10:21:41.260

493 Array versus List<T>: When to use which? 2009-01-12T08:08:33.237

486 How do I clone a generic list in C#? 2008-10-21T16:47:05.823

481 Java: convert List<String> to a String 2009-11-17T21:15:14.877

477 Type List vs type ArrayList in Java 2010-02-17T07:40:13.490

473 How to split a string into a list? 2009-04-13T12:48:44.750

458 How to sort (list/tuple) of lists/tuples? 2010-06-25T23:01:41.033

457 Find intersection of two nested lists? 2009-03-13T13:42:44.680

450 List of lists changes reflected across sublists unexpectedly 2008-10-27T14:57:22.883

448 List<T> or IList<T> 2008-12-30T12:18:09.357

447 Convert list to array in Java 2012-03-05T19:37:28.803

442 Writing a list to a file with Python 2009-05-22T17:52:18.297

434 The difference between bracket [] and double bracket [[]] for accessing the elements of a list or dataframe 2009-07-23T03:33:18.410

427 How do I remove repeated elements from ArrayList? 2008-10-15T08:05:26.113

424 C# List<string> to string with delimiter 2010-08-26T12:29:06.827

412 List<T> OrderBy Alphabetical Order 2008-10-09T16:48:03.313

409 Convert all strings in a list to int 2011-09-10T00:28:08.950

408 R - list to data frame 2010-11-19T16:40:52.897

400 What's the idiomatic syntax for prepending to a short python list? 2011-12-16T17:30:01.267

399 Convert Set to List without creating new List 2012-01-17T09:40:05.053

397 Transpose/Unzip Function (inverse of zip)? 2008-08-21T04:29:07.580

396 How to check if an object is a list or tuple (but not string)? 2009-12-02T18:53:07.987

385 Getting a map() to return a list in Python 3.x 2009-08-20T00:27:26.793

376 Is there a short contains function for lists? 2012-10-17T12:19:53.703

376 How to return dictionary keys as a list in Python? 2013-05-29T16:24:16.313

372 Why do I get an UnsupportedOperationException when trying to remove an element from a List? 2010-06-03T12:08:43.633

370 What is the most "pythonic" way to iterate over a list in chunks? 2009-01-12T02:48:22.960

363 Finding the average of a list 2012-01-27T20:58:18.307

361 python: list vs tuple, when to use each? 2009-11-10T14:50:58.787

360 Flatten an irregular list of lists 2010-01-28T22:15:42.720

359 How to remove elements from a generic list while iterating over it? 2009-10-17T14:12:35.363

351 How would you make a comma-separated string from a list of strings? 2008-09-04T21:04:04.873

341 What is the difference between Set and List? 2009-06-23T20:32:10.060

339 Create an empty list in python with certain size 2012-05-23T00:38:24.613

338 How can I add an item to a IEnumerable<T> collection? 2009-07-31T01:52:35.193

336 How to get the list of all installed color schemes in Vim? 2011-09-07T09:55:38.693

332 ArrayList vs List<> in C# 2010-02-22T08:36:55.467

328 HashSet vs. List performance 2008-09-29T21:24:15.297

327 Creating a new dict in Python 2011-12-08T01:10:58.650

320 How to initialize List<String> object in Java? 2012-11-15T10:01:09.583

317 Array or List in Java. Which is faster? 2009-04-04T05:57:28.337

314 Scala list concatenation, ::: vs ++ 2011-07-02T22:43:01.527

314 Concatenate item in list to strings 2012-09-17T05:32:25.410

312 Sort a list of tuples by 2nd item (integer value) 2012-05-22T02:48:02.687

311 How to empty a list in Python? 2009-09-09T16:08:21.013

304 Python List vs. Array - when to use? 2008-10-06T20:17:43.470

302 if else in a list comprehension 2010-12-10T06:45:51.960

296 Getting the index of the returned max or min item using max()/min() on a list 2010-03-18T23:20:35.763

292 How do I find the duplicates in a list and create another list with them? 2012-03-23T07:59:59.350

291 How to Correctly Use Lists in R? 2010-01-12T17:08:50.060

291 Append integer to beginning of list in Python 2013-07-28T17:54:33.540

281 How to avoid "ConcurrentModificationException" while removing elements from `ArrayList` while iterating it? 2013-08-26T16:27:45.480

277 How can I compare two lists in python and return matches 2009-09-07T11:07:27.623

269 Sum a list of numbers in Python 2010-12-06T02:01:23.323

265 How do I copy items from list to list without foreach? 2009-12-23T11:17:57.230

265 Alphabet range python 2013-04-17T13:06:49.193

263 Remove all occurrences of a value from a list? 2009-07-21T03:12:10.860

253 How to initialize a C# string list (List<string>) with many string values 2010-06-29T08:46:36.260

250 Flatten List in LINQ 2009-10-19T19:48:22.407

249 How to randomize two ArrayLists in the same fashion? 2010-11-19T20:10:52.187