Formatted Input

Dan Bishop danb_83 at yahoo.com
Sat Mar 10 14:38:37 EST 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