@ramarao-b2p

num = int(input())
sum = 0
for i in range(1,num):
    if num%i==0:
        sum+=i

print(sum)

@tejastidake6897

For input 6 why output is 1 it should does it means true? And if number is not perfect then returning sum?

@topsoundlovers

Bhai Kya Hum Question Dekh kar Programming Language Change Kar Sakate Hai Kya

@ishankhan5110

So basically if the no. Is equal to its sum of factors we have to return 1 else we ahve to return its sum whatever it is whuch is not equal to actually no.

@bossnation8921

Do they give these types of easy questions?

@PavanKumar-fw5jp

I want materials