Answers for "get question method in python"

2

how to ask a question in python

import tkinter as tk
from tkinter import simpledialog

ROOT = tk.Tk()

ROOT.withdraw()
# the input dialog
USER_INP = simpledialog.askstring(title="Test",
                                  prompt="What's your Name?:")

# check it out
print("Hello", USER_INP)
Posted by: Guest on October-04-2020
0

question command python

Question = input("How are you")

if Question == "Great!":
    print("Me too!")

elif Question == "Bad":
    print(":(")

else:
    print("Please anwser 'Great' or 'Bad'")
Posted by: Guest on September-02-2021

Python Answers by Framework

Browse Popular Code Answers by Language