Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
01. Number Pyramid
Spocoman
Dec 30th, 2021
(
edited
)
153
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
num
=
int
(
input
(
)
)
counter
=
1
for
row
in
range
(
1
,
num +
1
)
:
for
col
in
range
(
row
)
:
if
counter
>
num:
break
print
(
' '
,
end
=
f
'{counter}'
)
counter +
=
1
print
(
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Make $1000 15-MINUTES (BEGINNER) 2J
JavaScript | 27 sec ago | 0.05 KB
Untitled
JavaScript | 16 min ago | 1.18 KB
EARN $900 INSTANTLY 2025 XH
JavaScript | 17 min ago | 0.05 KB
Vehicle spawner for Stars And Stripes Multipl...
Pawn | 19 min ago | 1.67 KB
EARN $900 INSTANTLY 2025 XH
JavaScript | 31 min ago | 0.05 KB
Products.js
JavaScript | 32 min ago | 1.18 KB
database_C2
Python | 33 min ago | 4.02 KB
Untitled
Python | 39 min ago | 1.23 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!