Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sovrshen_broj(broj):
- a=[]
- for x in range(1,broj):
- if broj%x==0:
- a.append(x)
- sum=0
- for x in a:
- sum+=x
- print(sum==broj)
- if __name__ == "__main__":
- broj = eval(input())
- sovrshen_broj(broj)
- # your code here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement