Thank you Thomas and Perfringo. I just realized the colon after working through the code step by step. I figured out the working of the code as I did it step by step running the code after each line. Then logged in and noticed your reply as well. And the colon is actually missing in the book. Well problem solved.
Sure Buran, will format with tags in future. I'm going to try to see if it's working:
Sure Buran, will format with tags in future. I'm going to try to see if it's working:
for i in range(10): print i