[Tutor] How to split something?

Steven D'Aprano steve at pearwood.info
Sun Jan 29 05:51:45 CET 2012

Alan Ting wrote:
> Hello,
> How do I get the characters to separate?
> This is what I did.
> def personalNote(name):
>     'Print a personalized love note'
>     x = (name)

Oh, I forgot to mention... the line x = (name) is utterly pointless. Instead 
of wasting time with x=name, just use name everywhere your code uses x.


More information about the Tutor mailing list