About 27,700,000 results
Open links in new tab
  1. Python User Input - W3Schools

    Python allows for user input. That means we are able to ask the user for input. The following example asks for your name, and when you enter a name, it gets printed on the screen: Ask …

  2. python - how to get certain words from user input - Stack Overflow

    Jun 14, 2013 · You can use the string.split() to split up the text into each word. Then you can test each word individually for key words. Details: http://docs.python.org/2/library/string.html

  3. python - Accept an input as a word and not an integer - Stack Overflow

    How to make word inputs in Python I want to be able to have the computer to ask a question to the user like. test = int(input('This only takes a number as an answer')) I want to be able to …

  4. Taking input in Python - GeeksforGeeks

    Jan 2, 2025 · For example, Python provides a built-in function called input which takes the input from the user. When the input function is called it stops the program and waits for the user's …

  5. How to Receive User Input in Python: A Beginner’s Guide

    Feb 14, 2025 · Learn how to receive user input in Python using the input() function, command-line arguments, and GUI methods. Explore examples, best practices, and common m…

  6. How do I find a keyword from user's input in python?

    Feb 28, 2016 · The solution can be achieved by converting both the key_words and user_input sentence to a set and finding intersection between the 2 sets. key_words = {"screen", "power", …

  7. How to Take Input from the User in Python - CodeRivers

    Apr 10, 2025 · Whether you're building a simple calculator, a text-based game, or a more complex application, the ability to interact with the user by receiving their input is essential. This blog …

  8. Getting User Input in Python: Methods and Best Practices

    Aug 1, 2024 · Python offers a variety⁤ of methods to collect user input, each suited for ⁤specific purposes.⁣ Here are some of the most commonly used methods: raw_input (): This method …

  9. How to Get Input from User in Python - CodeRivers

    Mar 18, 2025 · This blog post will explore the various ways to get input from the user in Python, including the basic functions, their usage, common practices, and best practices. The most …

  10. Python Input () Function: A Complete Guide | Python Central

    In Python, the input() function enables you to accept data from the user. The function is designed so that the input provided by the user is converted into a string. In this brief guide, you'll learn …

  11. Some results have been removed
Refresh