DEV Community

Devansh Tayal
Devansh Tayal

Posted on

Output for this Python code

Underscores in numbers....

bigger_number= 14_000_000_000

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

Top comments (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
Vedant Chainani

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 ==>