Python long integer input

How can I take the "long int" input in Python 2.7?

PS I tried various options n=(*(raw_input())) , but to no avail.

+6
source share
1 answer
 n = int(raw_input()) 

This will convert the input to an integer. Since Python uses arbitrary precision arithmetic, we don’t have to worry about how big this figure is.

 >>> n = int(raw_input()) 100000000000000 >>> n 100000000000000L 
+6
source

All Articles