fork download
  1. from __future__ import print_function
  2.  
  3. processing_methods = {
  4. 'print': print_function,
  5. 'append_Q_and_print': lambda x: print(x+'Q')
  6. }
  7.  
  8. a = '12'
  9. method = 'append_Q_and_print'
  10. processing_methods[method](a)
  11.  
Success #stdin #stdout 0.08s 8880KB
stdin
Standard input is empty
stdout
12Q