# Write a program to Find the nth Perfect Number '''Write a Pythonprogram to find the nth perfect number. or Write aprogram to find the nth perfect number using Python '''print("Enter a Nth Number:")rangenumber=int(input())c = 0letest = 0num = 1while (c != rangenumber):    sum = 0    for i in range(num):        if (num % i == 0):         sum = sum + i    if (sum == num):        c+=1        letest = num    num = num + 1print(rangenumber,"th perfect number is ",letest)