fork download
  1. import json
  2. import binascii
  3.  
  4. name = 'abc'
  5. power = 5.0
  6. attack = [1, 2, 3]
  7.  
  8. jsonified = json.dumps((name, power, attack))
  9. secret_number = binascii.hexlify(jsonified.encode('UTF-8')).decode('UTF-8')
  10. print(secret_number)
  11.  
Success #stdin #stdout 0.03s 10240KB
stdin
Standard input is empty
stdout
5b22616263222c20352e302c205b312c20322c20335d5d