[Python-ideas] intput()
Ryan Gonzalez
rymg19 at gmail.com
Mon Jan 25 16:58:00 EST 2016
Also:
def linput():
'Reads a list. Completely, 100% secure and bulletproof.'
return map(eval, input[1:-1].split(',')))
def ninput():
'Reads None.'
assert input() == 'None'
def strinput():
'Reads a string. Also 100% secure.'
return eval("'" + input() + "'")
On January 25, 2016 2:04:08 PM CST, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>Marcel O'Neil wrote:
>> def intput():
>> return int(input())
>
>And also
>
> def flintput():
> return float(input())
>
>Yabba-dabba-doo-ly,
>Greg
>_______________________________________________
>Python-ideas mailing list
>Python-ideas at python.org
>https://mail.python.org/mailman/listinfo/python-ideas
>Code of Conduct: http://python.org/psf/codeofconduct/
--
Sent from my Nexus 5 with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160125/1d9b30c1/attachment.html>
More information about the Python-ideas
mailing list