1. 8
2. 4
3. 2
4. 1
8
1. 1011
2. 11
3. 13
4. 1101
1011
1. int(1111,10)
2. int(‘1111’,10)
3. int(1111,2)
4. int(‘1111’,2)
int(‘1111’,2)
1. b1101
2. 0b1101
3. 12
4. 1101
12
1. int(1011)
2. int(‘1011’,23)
3. int(1011,2)
4. int(‘1011’)
int(1011,2)
1. &
2. ^
3. |
4. !
^
1. ‘0bx1000’
2. 8
3. 1000
4. ‘0b1000’
‘0b1000’
1. 115
2. 116
3. 117
4. 118
117
1. True
2. False
False
1. 001101010
2. 110010101
3. 001101011
4. 110010100
001101010