I am a beginner in python and cant understand why this is happening:
from math import * print \"enter the number\" n=int(raw_input()) d=2 s=0 while d
You need to import math rather than from math import *.
import math
from math import *