[Tutor] taking a tuple with input

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Oct 27 02:01:19 CEST 2013


On 26/10/2013 20:32, Siva Cn wrote:
>
> 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*
> ---------------------
>

Congratulations, for managing to break threading you have won tonight's 
star prize, a two week, all expenses paid holiday to Three Mile Island, 
Pennsylvania :)

-- 
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence



More information about the Tutor mailing list