About 50 results
Open links in new tab
  1. How to allow VS Code to take input from users? - Stack Overflow

    This way you can select the interpreter in your virtual environment and use that instead of the one attached to the PATH by default. The two settings above should allow you to A) Enter input …

  2. python - How do I convert user input into a list? - Stack Overflow

    I'm wondering how to take user input and make a list of every character in it. magicInput = input ('Type here: ') And say you entered "python rocks" I want a to make it a list something like this

  3. How to take input in an array + PYTHON? - Stack Overflow

    I am new to Python and want to read keyboard input into an array. The python doc does not describe arrays well. Also I think I have some hiccups with the for loop in Python. I am giving …

  4. Python - How to take user input and use that in function

    Jun 18, 2016 · I edited my answer, yes, you can take user input and pass it to function. In my answer, I am passing user inputs x and y to the function multiplication. Does that clarify your …

  5. python - raw_input without pressing enter - Stack Overflow

    48 I'm using raw_input in Python to interact with user in shell. c = raw_input('Press s or n to continue:') if c.upper() == 'S': print 'YES' It works as intended, but the user has to press enter …

  6. How to take matrix input from the user and display the matrix in …

    I have an experience in java and c++ for 7 years now. I recently started learning python. Can someone please help me on how to read the input for the matrix and display the same in …

  7. Command line input in Python - Stack Overflow

    It is not at all clear what the OP meant (even after some back-and-forth in the comments), but here are two answers to possible interpretations of the question: For interactive user input (or …

  8. python - How can I read inputs as numbers? - Stack Overflow

    Dec 8, 2013 · Calling a function would take the same amount of work as calling int. If you mean, something that combines the int conversion work with the input getting work, it's easy to create …

  9. python - How to get multiline input from the user - Stack Overflow

    I want to write a program that gets multiple line input and work with it line by line. Why isn't there any function like raw_input in Python 3? input does not allow the user to put lines separated by

  10. How to get a complex number as a user input in python?

    Sep 9, 2016 · Note that Python uses "j" as a symbol for the imaginary component; you will have to tell your user to input numbers in this format: 1+3j If you would like your calculator to support a …