Skip to content

Instantly share code, notes, and snippets.

View kuldeeprishi's full-sized avatar
🎯
Focusing

Kuldeep Rishi kuldeeprishi

🎯
Focusing
View GitHub Profile
@IlianIliev
IlianIliev / gist:6056557
Created July 22, 2013 19:00
Timing different methods for string reversion in Python
import timeit
string = "Hello, World!"
def reverse(string):
result = ""
for i in xrange(len(string), 0, -1):
result = result+string[i-1]