lundi 25 février 2019

How to make it simpler and works?

def Choose():

Options = input()

if Options == 1:
    Penarikan_Tunai()
elif Options == 2:
    Setor_Tunai()
elif Options == 3:
    Transfer()
elif Options == 4:
    Informasi_Saldo()
elif Options == 5:
    Pembayaran_Lainnya()
elif Options == 6:
    Ganti_Pin()
elif Options == 'X' or Options == 'x':
    Thanks()
else:
    print("Pilihannya hanya 1 - 6.\n")
    Choose()

I'm to the point, How to make it simpler and works? That's all. But the website keep makes me to write more words, and warn me with "It looks like your post is mostly code; please add some more details."

Aucun commentaire:

Enregistrer un commentaire