How can one take a "long int" input in Python 2.7?
PS 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.