[Tutor] Hmm...I should be able to figure this out...but...

Kalle Svensson kalle at lysator.liu.se
Wed Jul 21 13:49:10 CEST 2004


[Dick Moores]
> Sorry for what is surely a dumb question, but what is the ". in
> print ''.join(rstring). Can't find this anywhere in the Python docs.

'' is a string object (the empty string).

''.join is the method join of the string object.

''.join(rstring) is the join method of the string object called with
rstring as an argument.

There's more about string methods in the documentation:
http://python.org/doc/lib/string-methods.html

Peace,
  Kalle
-- 
http://juckapan.org/~kalle/
http://laxmasteriet.se/04-05/


More information about the Tutor mailing list