Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
# b_nth_diamond.py
here2share
Apr 11th, 2021
(
edited
)
963
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
# b_nth_diamond.py
def
nth_diamond
(
nth
)
:
s
=
[
]
for
j
in
range
(
nth+
1
)
:
t
=
' '
+
' '
*
(
nth-j
)
+
'* '
*j
s +
=
[
t
]
s
=
s
[
:-
1
]
+s
[
::-
1
]
return
'
\n
'
.
join
(
s
)
print
nth_diamond
(
5
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
โ โ Quick Money Method 2025
JavaScript | 14 sec ago | 0.67 KB
๐จ๐จ Wealth Building Strategy โ โญ
JavaScript | 58 sec ago | 0.67 KB
โกโก Earn 8,000$ Monthly Leaked Guide
Java | 1 min ago | 0.17 KB
โญโญ FREE BTC GUIDE โ Working ๐ฏ๐ฏ
JavaScript | 2 min ago | 0.67 KB
โญโญ FREE BTC GUIDE โ Working โญโญ
JavaScript | 3 min ago | 0.67 KB
๐ TRADING EXPLOIT โ ๐ต๐ฅ
Java | 3 min ago | 0.17 KB
โ โ NEW BTC STRATEGY
JavaScript | 4 min ago | 0.67 KB
Infinite Money Glitch
JavaScript | 4 min ago | 0.67 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!