can anyone help me with error due to prompting the user input in python 2? : def perfectNumberCheck(num):
    sum=0
    for i in range(1,num):
     if num%i==0:
      sum =sum+i
    if sum==num:
     print('1')
    else:
     print('0')  
num=int(raw_input('come on dude:'))
perectNumberCheck(num)


I am trying to execute the above code using python 2.7 but i keep on getting EOFError. can anyone help me?