[Tutor] taking a tuple with input

Siva Cn cnsiva.in at gmail.com
Sat Oct 26 21:32:56 CEST 2013


p1 = tuple([float(ele) for ele in input('Please type ...').split()])
p2 = tuple([float(ele) for ele in input('Please type ...').split()])

# input format is : 25.0 30.0

---------------------
*Siva Cn*
*Python Developer*
*http://www.cnsiva.com*
---------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20131027/f3c3e110/attachment.html>


More information about the Tutor mailing list