Skip to content
murmot

Results for “python split method example program error site:mail.python.org command”

  • mail.python.org

    [Tutor] Split Method

    [Tutor] Split Method. Rafael Knuth rafael.knuth at gmail.com Thu Jan 30 12:11:56 CET 2014.I already know how to split strings that are separated through empty spaces: def SplitMyStrings(): Colors = "red blue green white black".split() return (Colors).

  • mail.python.org

    mail.python.org/pipermail/tutor/2010-February.txt

    I am very new to python. > I have a string for example : 123B? ?? new Project > i want to separate 123B as a single string and new? project as another > string . > how can i do that. > i tried using partition but couldnt do it. str.split() is the thing to use.

  • mail.python.org

    [Tutor] regular expressions

    Try to split the problem in logical parts, solve each one and glue the together again. Let's look at your problem. (a) Find the names of all files in a directory.exts[ext] = exts.get(ext, 0) + 1. I wrote here ext[1:] since the split method returns also the period with the extension.