+ 3
I want to calculate this sequence ..and I just want the result of the sequence...help me:(
(2*4*6*...100)/(1*3*5*7...99) https://code.sololearn.com/cyeWavMcSb9n/?ref=app
8 Antwoorden
+ 3
x,y=1,1
for i in range(1,101):
    if i%2==0:
         x*=i
    if i%2==1:
         y*=i
print(x/y)
+ 1
here:
https://docs.python.org/3/library/functools.html#module-functools
scroll down to functools.reduce....you need to use a lambda (show in link) and list comprehension.
+ 1
Mohammad Gk Thank you😊
0
rodwynnejones thank you...I'm trying to make it
0
a =range(1,51)
 
e=1
o=1
 
for i in a:
	e*=i*2
	o*=i*2-1
				
print(e/o)
0
😇😍😘😗
0
0599643076



