Re: \t not working

2006-05-17 Thread Alex Pavluck
ha ha...good point. I didn't realize that you could run it all together. I guess the "single string" part should have been a tip off. Anyway, more questions to come soon. Thanks everyone! -- http://mail.python.org/mailman/listinfo/python-list

Re: \t not working

2006-05-17 Thread Sybren Stuvel
Alex Pavluck enlightened us with: > Q: As an exercise, write a single string that: > Procuces >this >output. > > > A? > print "produces",'\n',"\t","this","\n","\t","output." Just nitpicking, since you already got your answer, but that's not a s

Re: \t not working

2006-05-17 Thread bruno at modulix
Alex Pavluck wrote: > I am just learning Python and I am using the book, "Thinking like a > Computer Scientist". There is an exercise that I am not able to get > working and it is really easy so I thought I would ask for help here. > > > Q: As an exercise, write a single string that: > Procu

Re: \t not working

2006-05-17 Thread Alex Pavluck
Sorry, I just realized that if I run it as a script it just drops a line and doesn't tab but if I run it from the shell it outputs perfectly. Thanks for the help. -- http://mail.python.org/mailman/listinfo/python-list

Re: \t not working

2006-05-17 Thread Brian Blais
Alex Pavluck wrote: > I am just learning Python and I am using the book, "Thinking like a > Computer Scientist". There is an exercise that I am not able to get > working and it is really easy so I thought I would ask for help here. > > > Q: As an exercise, write a single string that: > Procu

\t not working

2006-05-17 Thread Alex Pavluck
I am just learning Python and I am using the book, "Thinking like a Computer Scientist". There is an exercise that I am not able to get working and it is really easy so I thought I would ask for help here. Q: As an exercise, write a single string that: Procuces this