[Solved] How do I go back to a variable in python? [closed]


Maybe you want:

while True:
    ...

This will put you back at the top if you place the statement at the top of your script.

Like this:

while True:
   command=raw_input("j;/")
   command1="help"
   command2="jver"


   if command==command1:
      print "List of commands"
      print""
      print""
      print"help = shows all commands"
      print ""
      print "jver = Version of MS-Josh"
   elif command==command2:
        print "MS-Josh version 3.12."
        print ""
        print "memory used: 7,117 bytes"
        print "memory on computer: 1,434,078 bytes"
        print "memory free: 1,426,961"
   else:
      print "incorrect command"

solved How do I go back to a variable in python? [closed]