Code for few General Questions in Python