fork(1) download
  1. CONFIG_A = 1 # bin: 0b00000001
  2. CONFIG_B = 2 # bin: 0b00000010
  3. CONFIG_C = 4 # bin: 0b00000100
  4. CONFIG_D = 8 # bin: 0b00001000
  5. CONFIG_E = 16 # bin: 0b00010000
  6. CONFIG_F = 32 # bin: 0b00100000
  7. CONFIG_G = 64 # bin: 0b01000000
  8. CONFIG_H = 128 # bin: 0b10000000
  9.  
  10. config = CONFIG_A | CONFIG_C # bin: 0b00000101
  11.  
  12. print(bin(config))
Success #stdin #stdout 0.01s 28384KB
stdin
Standard input is empty
stdout
0b101