About 6,200,000 results
Open links in new tab
  1. change the order of string in python - Stack Overflow

    Oct 15, 2017 · How do I change the sequence of string? For e.g. mys='4002-10-21' Expected result: '4002-21-10' What I have tried: I can enumerate the splitted string and then re-arrange …

  2. Taking multiple inputs from user in Python - GeeksforGeeks

    Dec 3, 2024 · One of the simplest ways to take multiple inputs from a user in Python is by using the input () function along with the split () method. The split () method splits a string into a list …

  3. Taking multiple inputs from user in Python - Includehelp.com

    Apr 20, 2025 · To take multiple inputs from the user in Python, you can simply use the combination of input () and split () method like input ().split () and write the multiple values as …

  4. Python String split () Method - W3Schools

    The split() method splits a string into a list. You can specify the separator, default separator is any whitespace. Note: When maxsplit is specified, the list will contain the specified number of …

  5. Input split Python | Example code - EyeHunts

    Dec 9, 2021 · Use the split() method to split the input string based on the commas and create a list of individual elements. Optionally, you can convert the elements to the desired data type …

  6. How To Take Multiple Inputs In Python? - Flexiple

    Mar 19, 2024 · Using the split() method in Python simplifies the process of taking multiple inputs on a single line. This method divides a string into a list, splitting it at each instance of a …

  7. Take multiple inputs from user in python - coderspacket.com

    Feb 17, 2025 · Python offers a few ways to require numerous inputs, counting utilizing the ‘input ().split ()’ work, ‘map ()’ work, list comprehension, and loops. Each method serves a particular …

  8. Efficiently Split and Map Input in Python to Different Data Types

    By using a list comprehension and the enumerate () function, you can split the input and simultaneously convert one of the elements to an integer in a single line of code: [ [See Video …

  9. python - Using split on an input string - Stack Overflow

    Feb 19, 2020 · The input () function will ask user to enter three numbers separated by space and that will be a string, now you can use split function over the string returned by input ().

  10. Splitting Input into Arrays in Python - CodeRivers

    Apr 19, 2025 · Understanding how to split input into arrays effectively can greatly simplify your code and make data manipulation more manageable. This blog post will explore the …