mardi 30 novembre 2021

How do i input any number/alphabet/character in python

while True:
    i = input('Please enter confirm (input 1) to proceed with username and password creation (or any to quit):\n')
    i = int(i)
    if i == 1:
        print("Generating username and password....")
        break

how can i get it to quit if i input any value/character other than 1

Aucun commentaire:

Enregistrer un commentaire