[Tutor] Variable: From input and output

Rohit Roger$ rohitraj007 at gmail.com
Fri Feb 5 13:44:32 CET 2010


Answer:
Here is the code :

>>> firstname = raw_input("\n Enter your first name : ")
>>> lastname = raw_input("\n Enter your last name : ")
>>> print (" Printing Your Complete name.............")
>>> print firstname + " " + lastname

Regards,
Rohit

On Fri, Feb 5, 2010 at 6:04 PM, Kent Johnson <kent37 at tds.net> wrote:

> On Thu, Feb 4, 2010 at 5:39 PM, ssiverling <ssiverling at gmail.com> wrote:
> >
> >
> > I uploaded a file.  I know it's not very impressive.
>
> Where did you upload it?
>
> For short programs you can just include them in your email.
>
> Also, please don't top-post, and please subscribe to the list.
>
> Kent
> >
> >
> > Kent Johnson wrote:
> >>
> >> On Thu, Feb 4, 2010 at 1:19 PM, ssiverling <ssiverling at gmail.com>
> wrote:
> >>
> >>> So I have been working on this example for a little while.  I looked
> for
> >>> the
> >>> answer before posting.  I tried to use two raw inputs, then use
> >>> sys.stdout.write, to add them together.  However I think I might need
> to
> >>> use
> >>> a variable.  Any help would be appreciated.  Thank you in advance.
> >>
> >> What have you done so far? If you show us some code we can better help
> >> you.
> >>
> >> Kent
> >> _______________________________________________
> >> Tutor maillist  -  Tutor at python.org
> >> To unsubscribe or change subscription options:
> >> http://mail.python.org/mailman/listinfo/tutor
> >>
> >>
> > http://old.nabble.com/file/p27460922/psy psy
> > --
> > View this message in context:
> http://old.nabble.com/Variable%3A-From-input-and-output-tp27457364p27460922.html
> > Sent from the Python - tutor mailing list archive at Nabble.com.
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor at python.org
> > To unsubscribe or change subscription options:
> > http://mail.python.org/mailman/listinfo/tutor
> >
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100205/15c1abad/attachment.htm>


More information about the Tutor mailing list