Code:
#!/usr/bin/env python
print "=======jnLink v.1.0======="
x=raw_input('User name: ')
y=raw_input('Password: ')
if x=='Jon' and y=='turtles21':
print "Logged On, Welcome Jonathan Nunamaker."
else:
print "logon failed"
c=1
while c <10:
print "Logon Failed"
"actual coding"
Code:
start=raw_input("EF to edit file: ")
if start=='EF':
filedestination=raw_input('File name please? ')
editorwrite=raw_input('Edit or Read this file? (r to read and w to write. )')
fob=open('/home/jon/My Cheat Tables/computer/' + filedestination, editorwrite)
if editorwrite== 'q':
print "Main Menu: "
if editorwrite== 'w':
fob.write(raw_input('Your file is open: '))
fob.close()
if editorwrite== 'r':
print "=======file======="
print fob.read()
print "=======file======="
closeorjump=raw_input('type c to exit to main menu: ')
if closeorjump== 'c':
fob.close()
==========================================
I have this; I need to have it go back to main menu after the end of each if statement. Any ideas? Please?
Bookmarks