can someone suggest the best IDE for python which must be similar to code blocks
What features do you need? I don't know code blocks, but I can recommend PyCharm.
Not that I know anything, but I guess it won't hurt to name OS you are using.
Separate names with a comma.