Hello rusi
This is a little bit faster:
s = "apple"
[s[i:i+2] for i in range(len(s)-1)]
>>> timeit("""s = "apple"
... [a+b for a,b in zip(s, s[1:])]""",number=1)
0.061038970947265625
>>> timeit("""s = "apple"
... [s[i:i+2] for i in range(len(s)-1)]""",number=1)
0.0467379093170166
Reg
alternatively you can use virtualenv to create virtual environments
http://www.virtualenv.org/en/latest/index.html
however, if what you want is automated generation of some of the code,
you can adopt an IDE or create some macros in your text editor of
choice.
From: alex23
Date: 24 Septem