Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
ch7 ex 5
Arcot
Nov 29th, 2021
(
edited
)
269
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
✅ MAKE $22OO IN 10 MIN O
JavaScript | 14 sec ago | 0.07 KB
FREE BTC GUIDE 8
JavaScript | 46 sec ago | 0.07 KB
Make 3500$ in 20 MIN [Method] E
JavaScript | 1 min ago | 0.07 KB
Make $2000 in 15 minutes 0
JavaScript | 1 min ago | 0.07 KB
FREE BTC GUIDE Z
JavaScript | 2 min ago | 0.07 KB
MAKE $5000 INSTANTLY S
JavaScript | 3 min ago | 0.07 KB
MAKE $1000 INSTANTLY P
JavaScript | 3 min ago | 0.07 KB
✅ MAKE $22OO IN 10 MIN O
JavaScript | 4 min ago | 0.07 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!