About 17,800,000 results
Open links in new tab
  1. slice - How slicing in Python works - Stack Overflow

    The first way works for a list or a string; the second way only works for a list, because slice assignment isn't allowed for strings. Other than that I think the only difference is speed: it looks …

  2. List of zeros in python - Stack Overflow

    Dec 16, 2011 · How can I create a list which contains only zeros? I want to be able to create a zeros list for each int in range(10) For example, if the int in the range was 4 I will get: [0,0,0,0] …

  3. python - How to convert list to string - Stack Overflow

    Apr 11, 2011 · How can I convert a list to a string using Python?

  4. How can I find the index for a given item in a list?

    Caveats Linear time-complexity in list length An index call checks every element of the list in order, until it finds a match. If the list is long, and if there is no guarantee that the value will be …

  5. Sorting a list with stream.sorted () in Java - Stack Overflow

    Sorted list: [20.455, 23.455, 24.455, 28.455] Are you sure you are not verifying list instead of sortedList [in above example] i.e. you are storing the result of stream() in a new List object and …

  6. What is the syntax to insert one list into another list in python?

    Sep 20, 2010 · What is the syntax to insert one list into another list in python? [duplicate] Asked 14 years, 10 months ago Modified 6 years, 1 month ago Viewed 349k times

  7. How do I make a flat list out of a list of lists? - Stack Overflow

    Dec 3, 2016 · If your list of lists comes from a nested list comprehension, the problem can be solved more simply/directly by fixing the comprehension; please see How can I get a flat result …

  8. Certified models list - ChromeOS Flex Help - Google Help

    Jun 30, 2025 · To ensure a consistent and high-quality experience, Google individually certifies and maintains a list of models that you can use with ChromeOS Flex. Model status Certified …

  9. How to list all installed packages and their versions in Python?

    Jul 8, 2018 · Is there a way in Python to list all installed packages and their versions? I know I can go inside python/Lib/site-packages and see what files and directories exist, but I find this very …

  10. pandas dataframe index: to_list () vs tolist () - Stack Overflow

    Sep 9, 2019 · Note that the question was about pandas tolist vs to_list. pandas.DataFrame.values returns a numpy array and numpy indeed has only tolist. Indeed, if you read the discussion …