0

Can u explain int('1011',2) = 7 how

10th Sep 2019, 12:36 PM
Ayush Sharma
3 Respuestas
0
Ayush Sharma execute that answers will be 11 not 7 print(int('1011',2)) will return 11 run it on python ide
10th Sep 2019, 2:14 PM
Preity
Preity - avatar
- 1
Ayush Sharma it's returning the binary equalant which is 11 print(int('1011',2)) =11
10th Sep 2019, 12:49 PM
Preity
Preity - avatar
- 1
But its answer is 7
10th Sep 2019, 2:03 PM
Ayush Sharma