Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
ch7 ex 5
Arcot
Nov 29th, 2021
(
edited
)
210
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
#Que 2.1
def
factorial
(
number
)
:
fact
=
1
for
x
in
range
(
number
)
:
fact
=
fact *
(
x+
1
)
return
fact
#Que 2.2
def
factorialFrom1toN
(
N
)
:
for
x
in
range
(
N
)
:
print
(
factorial
(
x+
1
)
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐ GET 5OO$ GIFT CARD CZ
JavaScript | 0 sec ago | 0.18 KB
⭐ FREE giftcards method⭐ 4Q
JavaScript | 2 sec ago | 0.18 KB
$3000/DAY ==> THIS METHOD WORKS 100%Dur
JavaScript | 3 sec ago | 0.07 KB
⭐️ EARN $500 INSTANTLY⭐ OC
JavaScript | 6 sec ago | 0.18 KB
⭐ FREE giftcards method JA
JavaScript | 7 sec ago | 0.18 KB
⭐ get any gift card for FREE⭐ NQ
JavaScript | 7 sec ago | 0.18 KB
⭐ GET 5OO$ GIFT CARD WH
JavaScript | 9 sec ago | 0.18 KB
⭐ GET 5OO$ GIFT CARD AS
JavaScript | 13 sec ago | 0.18 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!