From c096d0fd027aa1429c79f86c068254acf07df00b Mon Sep 17 00:00:00 2001 From: Bicky23 Date: Sat, 17 Jun 2017 16:29:16 +0000 Subject: [PATCH] Done --- square_of_numbers.py | 6 ++++++ square_of_numbers.pyc | Bin 0 -> 447 bytes tests/__init__.pyc | Bin 0 -> 159 bytes tests/test_squareOfNumbers.pyc | Bin 0 -> 1404 bytes 4 files changed, 6 insertions(+) create mode 100644 square_of_numbers.pyc create mode 100644 tests/__init__.pyc create mode 100644 tests/test_squareOfNumbers.pyc diff --git a/square_of_numbers.py b/square_of_numbers.py index e69de29..d621324 100644 --- a/square_of_numbers.py +++ b/square_of_numbers.py @@ -0,0 +1,6 @@ +def squareOfNumbers(n): + d = {} + for x in range(n+1): + d[x] = x**2 + return d +squareOfNumbers(5) diff --git a/square_of_numbers.pyc b/square_of_numbers.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c79f2d448ed2502544adced49800c51df168899d GIT binary patch literal 447 zcmcJL-Acni5QWdCR#Xr{g}i~}CNA3BBI3`L5J4}hf|Quuv`fuyn@OOB^h#gQXYmD` z-3mT|3-j$^c4y`=z3=_KuczDR0>3BX`;voVh5|l;7eKQX_z(~(!ei3ow?Z(y*y6b6 zpaH`GYk}nn8lVeBF<0HZ9%CJ$i@@bao$zY7h%sWh>6RJa&iLtxS52Q$=XRpQu*T${EsI;dssQuzUzx% J#&2r3{{tYuUwr@o literal 0 HcmV?d00001 diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..611bf08a79ac9305997e34dd4d8ffdabccc38823 GIT binary patch literal 159 zcmZSn%*!<`+%+0|1aUB;o)7 literal 0 HcmV?d00001 diff --git a/tests/test_squareOfNumbers.pyc b/tests/test_squareOfNumbers.pyc new file mode 100644 index 0000000000000000000000000000000000000000..11279e9f70232dba581787e734272b4a0ae77384 GIT binary patch literal 1404 zcmcgsO>fgc5S_J?v`xQKh$>ZZLE_*`i3&#$DlM(VrASVt(p)TKujx{IH+a{FO6{rq z27V#`0C9#lYt#nc!O2c`pU1oJ%^N5Du|E8Ec66T6pDV=gK88I;$nh0a5>-% z&vQ!%w#hOnb2q|V>CDu%%v@p`H*cKV0;o+=G&*z2=%g@>&fP9V-A>9hP3CIO> zjfiDH^>?}^`rKm#%6Bk;ihHaNY|z1$fGu~h0kD-0HUzfX!PbDScd!j$n;k3!HoC+5 zP1Jf|OOC@^T^NZVxT!11da? z9-xvZ3zlzkW&d_baT_QuzX~|?IIt6Hg@bPcHbw1l@GbO|XWT1lkHbDf%qh_tg71;` zjKma)ZhOJshX$lurL9YKCLJG@tIRPBpDaM`8b}$y}VjH8C!G0x)PAi!tzEVk2nY<~njM=SwIsaBu%=Kj3En6`VClR-V s|5s_Wa;!E6zzvVLp6#*TN$;F@%J1;M=z3zW+Dg6VjuBp!#q0n8RIA^-pY literal 0 HcmV?d00001