str="I love you" new=str.split(" ") resverse_list=[] for word in range(len(new)): entity=new[-word-1] resverse_list.append(entity) Reversed=' '.join(resverse_list) print Reversed
class Test: def __init__(self): print "construcctor" t1=Test() t2=Test() Output: construcctor construcctor Got printed two times because constructor executes automatically at the time of object creation