question: Calling an external command "ls"
  
target: p = subprocess . Popen ( 'ls' , shell = True , stdout = subprocess . PIPE , stderr = subprocess . STDOUT ) for line in p . stdout . readlines ( ) : print ( line , end = ' ' ) retval = p . wait ( ) 
  