How can one take a "long int" input in Python 2.7?
P.S. I tried various variations of n=(*(raw_input()))
but to no avail.
n = int(raw_input())
This will convert the input to an integer. Since Python employs arbitrary precision arithmetic, we don't have to worry about how big the number is.
>>> n = int(raw_input())
100000000000000
>>> n
100000000000000L
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With