fork(1) download
  1. # your code goes here
  2. import ast
  3.  
  4. block = "set_value('user_city', get_slot('city_entity'), 'unknown') if get_slot('city_entity') else None"
  5.  
  6. print(repr(ast.parse(block)))
Success #stdin #stdout 0.02s 9648KB
stdin
Standard input is empty
stdout
<_ast.Module object at 0x1523ff6dc7f0>