Which of the following is incorrect in python? a) x = 0b101 b) x = 0x4f5 c) x = 19023 d) x = 03964 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

 Which of the following is incorrect in python? a) x = 0b101 b) x = 0x4f5 c) x = 19023 d) x = 03964

answer this

14th Jan 2020, 2:30 PM
Himanshu Patel
Himanshu Patel - avatar
2 Answers
+ 3
D numbers starting with a 0 - octal numbers 9 isnt allowed in octal numbers
14th Jan 2020, 2:34 PM
Roman Ignatev
Roman Ignatev - avatar
0
Also octal numbers are written with an 0o in Python.
14th Jan 2020, 2:57 PM
HonFu
HonFu - avatar