It looks like you're new here. If you want to get involved, click one of these buttons!
#!/usr/bin/python
#Very simple system shell in python
import os, sys
done = False
while not done:
command = raw_input('PyShell$ ')
os.system(command)
#!/usr/bin/python
#Very simple system shell in python
import os, sys
while 1:
command = input ( 'PyShell$ ' )
os.system ( command )
Cleaned/Re-coded in Python 3:#!/usr/bin/python
#Very simple system shell in python
import os, sys
while 1:
command = input ( 'PyShell$ ' )
os.system ( command )
while not done:
while 1:
Cleaned/Re-coded in Python 3:#!/usr/bin/python
#Very simple system shell in python
import os, sys
while 1:
command = input ( 'PyShell$ ' )
os.system ( command )
Nice lolcoder. Is there any difference betweenwhile not done:
Andwhile 1:
I wouldn't know. But I would guess a syntax issue lol.