+ 8
Today's Challenge -> How to find Geometric progression of a series?
If a be the first term and r be the common ratio, then G.P will be- a, ar, ar^2, ar^3,......... and so on. For example, If a=1 and r=4 then G.P would be- 1,4,16,64,256,........ and so on. Best of luck guys, try to make the solution as small as possible
11 ответов
+ 8
https://code.sololearn.com/cCAa36NI4196/?ref=app
Yes one liner!
+ 7
..as small as possible...
https://code.sololearn.com/cN6pg5FnT3xl/?ref=app
+ 6
https://code.sololearn.com/ciwex0pTERYE/?ref=app
+ 5
I will try one-liner
+ 4
https://code.sololearn.com/cZBO0x3ro2JK/?ref=app
+ 4
my practice on python https://code.sololearn.com/cwI4i5u5SOvB/#py
+ 4
https://code.sololearn.com/ckLQNT909Iwf/?ref=app
+ 3
+ 3
as generator
https://code.sololearn.com/cDWRSyBZA0ax/?ref=app
0
Did I get it right?
https://code.sololearn.com/wMF2yKRf5S1Y/?ref=app