Though I like python very much, When I need to get multiple integer inputs in the same line, I prefer C/C++. If I use python, I use:
a = map(int, raw_input().split())
Is this the only way or is there any pythonic way to do it? And does this cost much as far as time is considered?
You can use this:
s = raw_input().split()
s = [int(i) for i in s]
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