How can I take the "long int" input in Python 2.7?
PS I tried various options n=(*(raw_input())) , but to no avail.
n=(*(raw_input()))
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