fork(1) download
  1. s = "hello, world, let's try to play some fun game"
  2.  
  3. def prn(s):
  4. m = s.split()
  5. for word in m:
  6. while word:
  7. prefix, word = word[0:2], word[2:]
  8. print(prefix)
  9.  
  10. prn(s)
  11.  
Success #stdin #stdout 0.02s 9104KB
stdin
Standard input is empty
stdout
he
ll
o,
wo
rl
d,
le
t'
s
tr
y
to
pl
ay
so
me
fu
n
ga
me