About 8,270,000 results
Open links in new tab
  1. Yes/No question with user input in Python - bobbyhadz

    To ask the user a yes/no question: Use the input() function to take input from the user. Perform an action if either condition is met. We used the input() function to take input from the user. The if …

  2. Add yes/no confirmation in python 3.X - Stack Overflow

    You could create a wrapper function which calls your other function. In the wrapper function, use another loop to confirm items. # wrapper function def item_list_wrapper(): while True: # call …

  3. Guide: Yes/No question with user input in Python - Medium

    Apr 30, 2023 · In Python, you can easily ask users to answer yes or no questions. In this guide, we will show you how to create a yes/no question with user input in Python. Start by creating a …

  4. Create a Yes/No Message Box in Python using tkinter

    Mar 26, 2020 · # Python program to create # yes/no message box import tkinter as tk from tkinter import * from tkinter import messagebox as mb def call(): res = mb.askquestion('Exit …

  5. Handling Yes/No User Input in Python - Stack Abuse

    Aug 21, 2023 · In Python, we can solicit Yes/No user input using the input() function. Here's a simple example: if user_input.lower() == "yes": print ("Continuing...") else: print ("Exiting...") …

  6. Creating a Confirmation function in python - Stack Overflow

    confirm = input("[c]Confirm or [v]Void: ") if confirm != 'c' and confirm != 'v': print("\n Invalid Option. Please Enter a Valid Option.") return confirm_choice() . print (confirm) return confirm. should …

  7. How to Show a Confirmation Dialog Using the Tkinter askyesno

    Use the Tkinter askyesno() function to show a dialog that asks for user confirmation. The askyesno() function returns True if you click the yes button, otherwise, it returns False.

  8. Ask for confirmation in Python · GitHub

    Ask for confirmation in Python. GitHub Gist: instantly share code, notes, and snippets.

  9. Mastering Yes/No Prompts: Techniques for Handling User Input in Python

    Creating Yes/No prompts with user input in Python is a simple but essential skill for any programmer. With the techniques presented in this article, you can handle variations in user …

  10. Tkinter messagebox - Ask Yes or No - Python Examples

    In Tkinter, the messagebox.askyesno () method is used to ask the user a question with two buttons: Yes, No. In this tutorial, you will learn how to ask a question in a message box using …

  11. Some results have been removed
Refresh