fork download
  1. all_commands = {
  2. 'cpu': lambda: print('so much cpu'),
  3. 'user': lambda: print('so much users')
  4. }
  5.  
  6. def test(*args):
  7. if args[0] in all_commands:
  8. return all_commands[args[0]]()
  9.  
  10. test('cpu')
  11.  
Success #stdin #stdout 0.02s 9200KB
stdin
Standard input is empty
stdout
so much cpu