#part 1: write a program that inputs one integer and checks if the int is #perfect #or not #perfect number is the number that sum of proper divisors equals to the #number itself #part 2: write a program that randomly generates integer N (you can decide #on the range) and prints all perfect numbers between 1 and N #Part I num=int(input("enter number ")) sum_div=0 for i in range(1,num): if(num%i==0): sum_div=sum_div+i if(sum_div==num): print(num,"is perfect") else: print(num,"is not perfect")