Formatted Input

Dan Bishop danb_83 at yahoo.com
Sat Mar 10 20:38:37 CET 2007


On Mar 10, 1:29 pm, "Deep" <deepblue... at gmail.com> wrote:
> Hi all,
> I am a newbie to python
> I have an input of form
> <one number> space <another number>
> ie.
> 4 3
> how can i assign these numbers to my variables??

n1, n2 = map(int, raw_input().split())




More information about the Python-list mailing list