From f869e75ea4c8d050316196de9416643c60495441 Mon Sep 17 00:00:00 2001 From: sandiprb Date: Thu, 10 Aug 2017 16:56:08 +0000 Subject: [PATCH] Done --- square_of_numbers.py | 9 +++++++++ square_of_numbers.pyc | Bin 0 -> 525 bytes tests/__init__.pyc | Bin 0 -> 154 bytes tests/test_squareOfNumbers.pyc | Bin 0 -> 1389 bytes 4 files changed, 9 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..9ba8d5c 100644 --- a/square_of_numbers.py +++ b/square_of_numbers.py @@ -0,0 +1,9 @@ +def squareOfNumbers(n): + output = {} + for i,v in enumerate(range(1, n + 1)): + output[i + 1] = v ** 2 + return output + + +if __name__ == '__main__': + print squareOfNumbers(5) diff --git a/square_of_numbers.pyc b/square_of_numbers.pyc new file mode 100644 index 0000000000000000000000000000000000000000..922d1ebed1884eb896a5f07cdd46585d9822bdc5 GIT binary patch literal 525 zcmb`EK}*9h7>3`pI-MvU1ob3>puNn_qcB8J)Kdj_7>W|IHq$WMbWJJ>-Dw^@_+R}4 ze#r*@0ZYF($(QtfpOWxrV{P~Q>psQe31~d0GDjpC@CiHsk|ARl2dEApsUKj*aD7wI zG(M7adz03#>1O(KgrmzA*6y4Xq-&(hOS7Est0sjh8VTi;M#-y-V5i)V~q zbS`5ficFQ&Fdpb?Y)X;JIMtbqyWNvcrc&F{qmG%>qLL<_k6e#9#Sdj=j>`|bNv89S z+fg!aI|#Gt(pZZfvTbJFg7aLcf^+4N6aO!F4s@|uh+K01$N2A{j-i+9tbUbep3vP| Idu5&d0#L_qtN;K2 literal 0 HcmV?d00001 diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3931c5ca5509cef9ce673222cdf73261b22136d2 GIT binary patch literal 154 zcmZSn%*& zq9pzB{G#mQg2d!h{p9?VRDA;jL*10jfgc5S_J?v`s&fLRG1P3y6a+CG8o63WZ8sTFI$Ynv3PyYq8W`hu!s|QhO># z_?P?x#2MbKQ5$>*$2-}59`C+4Z<6rG`ta$uujd*4xk7v&VAvys9Jip7s1h_2BzPTA z8Bi6{ETpPOvmRA_n)UH4Bq^v6l=tWh(Jj&WY(RORrqKXfsb9Dvftg!IIF;5NrdCFL zo?Ak&O_oWSyD{cUXSFdhb4lH}dE?wBKwT$Aqcf*!ofLJWbN3J^Z#4bfq(+_;$4zx1 zjlI*tr@g_j{JJET00kg73n-p?G8yMEhd#z3hCKjs^^v7e24YP z!Hi87fLrLXXT8K`+`=qCXZkJm+zMR|$vhIcSOOA;i?2OF%BoL!v5<1NhZgh!6`n>9 zP|4#3%ST+n-$gYT<( zjTeonP0YOA2EuE<8(P%kZFlo=R+dG}g_Rg-o6<#?kq`C+v&qN0k`tTiT+PkJ5U%#%$ERl7A*A<|?w;mJJw)