Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Números perfectos
elcocodrilotito
Nov 15th, 2016
54
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.23 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
num_perfecto
(
a
)
:
s
=
0
for
i
in
range
(
1
,
int
(
a/
2
)
+
1
)
:
if
a%i
==
0
:
s
=
s+i
if
s
==
a:
return
True
else
:
return
False
a
=
int
(
input
(
"Numero perfecto: "
)
)
print
(
num_perfecto
(
a
)
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 12 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 32 min ago | 0.38 KB
fbdnytnym
PHP | 47 min ago | 1.62 KB
Untitled
Pascal | 1 hour ago | 1.67 KB
Вывести числа в обратном порядке
C++ | 1 hour ago | 0.26 KB
Create admin and user1
T-SQL | 1 hour ago | 0.63 KB
Untitled
JSON | 2 hours ago | 5.62 KB
22 (короткий вариант)
Python | 2 hours ago | 0.29 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!