>      print '\n','siday_q', key, '.wav'# event
> 
> 
> i get:
> 
> siday_q 515 .wav
> 
> 
> how can you eliminate the spaces to get:
> 
> siday_q515.wav

Use the os path facilities to join file names etc together, 
its portable and safer(more reliable).

However to join strings without spaces I find it easiest to 
use the string format operator:

print "%s%s%s" % (str1, str, str3)

You can also write to sys.stdout if you prefer.

HTH

Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to