Python Bytecode Explorer

print("hello world") a = 1 b = 5 c = 10 d = a + b - c print(d)
Name: <module> Filename: <disassembly> Argument count: 0 Kw-only arguments: 0 Number of locals: 0 Stack size: 2 Flags: NOFREE Constants: 0: 'hello world' 1: 1 2: 5 3: 10 4: None Names: 0: print 1: a 2: b 3: c 4: d 1 0 LOAD_NAME 0 (print) 2 LOAD_CONST 0 ('hello world') 4 CALL_FUNCTION 1 6 POP_TOP 2 8 LOAD_CONST 1 (1) 10 STORE_NAME 1 (a) 3 12 LOAD_CONST 2 (5) 14 STORE_NAME 2 (b) 4 16 LOAD_CONST 3 (10) 18 STORE_NAME 3 (c) 5 20 LOAD_NAME 1 (a) 22 LOAD_NAME 2 (b) 24 BINARY_ADD 26 LOAD_NAME 3 (c) 28 BINARY_SUBTRACT 30 STORE_NAME 4 (d) 6 32 LOAD_NAME 0 (print) 34 LOAD_NAME 4 (d) 36 CALL_FUNCTION 1 38 POP_TOP 40 LOAD_CONST 4 (None) 42 RETURN_VALUE