Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to make a multichoice in python

while True:
    1 = input("1=: 
 A)  B) [A/B]? : ")
    if 1 == "A":
        print("A")
    elif 1 == "B":
        print("B")
		else:
        	print("Done!")
        break
Comment

PREVIOUS NEXT
Code Example
Python :: How do you create and update One2Many and Many2Many records with Python 3? 
Python :: DateTime object representing DateTime in Python 
Python :: remove every file that ends with extension in python 
Python :: add colour to text in python 
Python :: draw pixel by pixel python 
Python :: how to tell python to create a random numer 
Python :: python tkinter lable on bottom of screen 
Python :: python program for geometric progression 
Python :: Embed picture in email using smtplib 
Python :: multiline input in python 
Python :: convert string representation of dict to dict python 
Python :: converting column data to sha256 pandas 
Python :: python nextcord bot slash command 
Python :: truncate date to midnight in pandas column 
Python :: python find second occurrence in string 
Python :: how to get absolute path in python 
Python :: python f string round 
Python :: how to ascess GPS in python 
Python :: place a widget in tkinter 
Python :: replace the jinja template value inside the dictionary python 
Python :: pyrogram 
Python :: python pandas transpose table dataframe without index 
Python :: python diamond pattern 
Python :: how to open html file in python 
Python :: button position python 
Python :: creating a new folder in python 
Python :: split imagedatagenerator into x_train and y_train 
Python :: count missing values groupby 
Python :: get hwid python 
Python :: reverse order np array 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =