Demo entry 2836409

python

   

Submitted by anonymous on Oct 08, 2015 at 12:34
Language: Python. Code size: 1.1 kB.

#this makes it so that the this will only happen when program is active
while True:
#this will be the main menu and will be the first thing to load in the program it will allow the
#user to select what they want to do with the program by picking a letter (W,A,S,D)
    choice = raw_input('''main me

    1) Encrypt= press W
    2) Decrypt= press D
    3) Advanced Encryption= press A
    4) Close program= Press S

    Please select an option''')
#this assigns W to the encrypt section of the program
    if choice == "W":
        raw_input("please select a file you wish to encrypt")

#this assigns D the decrypt section of the program 
    elif choice == "D":
        raw_input ("please select a file you wish to decrypt")
#this assigns A to the advanced encryption section of the program
    elif choice == "A":
        raw_input ("you have chosen Advanced Encryption, please choose a file you wish to encrypt")
#this assigns S to the section which closes the program
    elif choice == "S":
        print "program closing"
        break

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).