Top "List" questions

The list tag may refer to: a linked list (an ordered set of nodes, each referencing its successor), or a form of dynamic array.

Converting JSON String to Dictionary Not List

I am trying to pass in a JSON file and convert the data into a dictionary. So far, this is …

python json list python-3.x dictionary
How to check if an object is a list or tuple (but not string)?

This is what I normally do in order to ascertain that the input is a list/tuple - but not …

python list types assert
How can I find a specific element in a List<T>?

My application uses a list like this: List<MyClass> list = new List<MyClass>(); Using the Add …

c# list properties find
Convert a Python list with strings all to lowercase or uppercase

I have a python list variable that contains strings. Is there a python function that can convert all the strings …

python list
How to overcome TypeError: unhashable type: 'list'

I'm trying to take a file that looks like this: AAA x 111 AAB x 111 AAA x 112 AAC x 123 ... And use …

python list dictionary typeerror
How to convert a Collection to List?

I am using TreeBidiMap from the Apache Collections library. I want to sort this on the values which are doubles. …

java list sorting collections apache-commons-collection
Append value to empty vector in R?

I'm trying to learn R and I can't figure out how to append to a list. If this were Python …

r list vector append
Pythonic way to print list items

I would like to know if there is a better way to print all objects in a Python list than …

python list printing list-comprehension
Convert a list to a dictionary in Python

Let's say I have a list a in Python whose entries conveniently map to a dictionary. Each even element represents …

python list dictionary
Print list without brackets in a single row

I have a list in Python e.g. names = ["Sam", "Peter", "James", "Julian", "Ann"] I want to print the array …

python list