fork download
  1. inp = """package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6. queue := make(chan string, 2)
  7. queue <- "one"
  8. queue <- "twoO"
  9. close(queue)
  10. for elem := range queue {
  11. fmt.Println(elem)
  12. }
  13. }"""
  14. for l in zip(*[x.ljust(len(max(inp.split('\n'), key=len))) for x in inp.split('\n')]): print(*l)
  15.  
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
p   i   f               }
a   m   u                
c   p   n                
k   o   c                
a   r     q q q c f   }  
g   t   m u u u l o      
e       a e e e o r      
    "   i u u u s        
m   f   n e e e e e f    
a   m   (       ( l m    
i   t   ) : < < q e t    
n   "     = - - u m .    
        {       e   P    
          m " " u : r    
          a o t e = i    
          k n w )   n    
          e e o   r t    
          ( " O   a l    
          c   "   n n    
          h       g (    
          a       e e    
          n         l    
                  q e    
          s       u m    
          t       e )    
          r       u      
          i       e      
          n              
          g       {      
          ,              
                         
          2              
          )