DEV Community

loading...

Output for this Python code

Devansh Tayal
Everything under the sun is my syllabus. And I'm loving that i follow my syllabus being efficient.
・1 min read

Underscores in numbers....

bigger_number= 14_000_000_000

1-> print(bigger_number)
2-> print (type(bigger_number))

Discussion (3)

Collapse
mohanchhabaria profile image
Mohan Chhabaria

This convention is used for big integers so that they are easier to read. It allows to divide digits with a single underscore.
Coming on to output. The number will be handled as an integer only, so the output will be :

  1. 14000000000
  2. int
Collapse
envoy_ profile image
Envoy-VC

14000000000
int

Collapse
harshal11 profile image
Harshal-11

The output of the above lines code is as follows:
1-> print(bigger_number)
output ==> 14000000000
2-> print(type(big_number))
output ==>