What is the output of print(1_000_000) in Python?
print(1_000_000)
Correct answer
C. 1000000
5 views
C. 1000000
5 views
Underscores in numeric literals are ignored (PEP 515).
Asked in: Python Interview Output Prediction
https://docs.python.org/3/reference/datamodel.htmlNot sure why the answer is C? Ask here and get an explanation.