About 25,200,000 results
Open links in new tab
  1. Get a list as input from user in Python - GeeksforGeeks

    Dec 5, 2024 · In this article, we will see how to take a list as input from the user using Python. The input() function can be combined with split() to accept multiple elements in a single line and …

  2. How to input strings into an array in C? - Stack Overflow

    Jan 7, 2017 · char *fgets(char *str, int n, FILE *stream) reads a line from an input stream, and copies the bytes over to char *str, which must be given a size of n bytes as a threshold of …

  3. JavaScript Arrays - W3Schools

    The JavaScript method toString() converts an array to a string of (comma separated) array values. Example const fruits = ["Banana", "Orange", "Apple", "Mango"];

  4. Python take a list as input from a user - PYnative

    Sep 8, 2023 · Get a list of strings as input from a user. Accepting a list of strings from the user is very straightforward. Accept the list of strings from a user in the format of a string separated by …

  5. Get a list of string as input from user in loop python

    Mar 24, 2017 · Your array has size 0, this is why you can't access any elements (or assign to them). The correct code would be: array = [] for i in range(4): array.append(input("Enter string"))

  6. How to Take Array Input From User in Java? - GeeksforGeeks

    Apr 17, 2025 · Arrays in Java are an important data structure, and we can add elements to them by taking input from the user. There is no direct method to take input from the user, but we can …

  7. Storing Java Scanner Input in an Array - Baeldung

    Nov 29, 2023 · We can call Scanner.nextLine() to read an input line and fill an array in a loop: String[] result = new String[3]; Scanner scanner = new Scanner(input); int i = 0; while (i < …

  8. Python String to Array – How to Convert Text to a List

    Feb 21, 2022 · Let's see how to use type() with strings and lists in the example below: You can take a word and turn it into a list. Every single character that makes up that word becomes an …

  9. Python Lists and Arrays - W3Schools

    In the example above, the time the algorithm needs to run is proportional, or linear, to the size of the data set. This is because the algorithm must visit every array element one time to find the …

  10. Java String Array- Tutorial With Code Examples - Software …

    Apr 1, 2025 · This tutorial on Java String Array explains how to declare, initialize & create String Arrays in Java and conversions that we can carry out on String Array.

Refresh