I want to calculate this sequence ..and I just want the result of the sequence...help me:( | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

26th Nov 2019, 5:46 PM
Parisafarivash
7 Answers
+ 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)
27th Nov 2019, 10:50 AM
Mohammad Gk
Mohammad Gk - avatar
+ 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.
26th Nov 2019, 7:33 PM
rodwynnejones
rodwynnejones - avatar
+ 1
Mohammad Gk Thank you😊
27th Nov 2019, 4:34 PM
Parisafarivash
0
rodwynnejones thank you...I'm trying to make it
26th Nov 2019, 7:46 PM
Parisafarivash
0
a =range(1,51) e=1 o=1 for i in a: e*=i*2 o*=i*2-1 print(e/o)
29th Nov 2019, 8:54 PM
Den
Den - avatar
0
😇😍😘😗
1st Dec 2019, 7:09 AM
احمد الشريف
احمد الشريف - avatar
0
0599643076
1st Dec 2019, 7:09 AM
احمد الشريف
احمد الشريف - avatar