From da382076e6400792f0d3aefb01e313bd56d69603 Mon Sep 17 00:00:00 2001 From: adinathauti Date: Thu, 15 Jun 2017 16:30:13 +0000 Subject: [PATCH 1/2] Done --- .results.json | 1 + square_of_numbers.py | 7 +++++++ square_of_numbers.pyc | Bin 0 -> 475 bytes tests/__init__.pyc | Bin 0 -> 163 bytes tests/test_squareOfNumbers.pyc | Bin 0 -> 1416 bytes 5 files changed, 8 insertions(+) create mode 100644 .results.json create mode 100644 square_of_numbers.pyc create mode 100644 tests/__init__.pyc create mode 100644 tests/test_squareOfNumbers.pyc diff --git a/.results.json b/.results.json new file mode 100644 index 0000000..3bd9851 --- /dev/null +++ b/.results.json @@ -0,0 +1 @@ +{"stats": {"passes": 1, "skipped": 0, "encoding": "UTF-8", "errors": 0, "failures": 0, "total": 1}, "results": [{"classname": "tests.test_squareOfNumbers:TestSquareOfNumbers", "type": "success", "name": "test_squareOfNumbers", "time": 0.0003120899200439453}]} \ No newline at end of file diff --git a/square_of_numbers.py b/square_of_numbers.py index e69de29..44b4090 100644 --- a/square_of_numbers.py +++ b/square_of_numbers.py @@ -0,0 +1,7 @@ +def squareOfNumbers(n): + dt = {} + for i in range(1,n+1): + dt.update({i:i*i}) + return dt + +squareOfNumbers(5) diff --git a/square_of_numbers.pyc b/square_of_numbers.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3a0b718844c101f5f05b8813d2932a87a91ed4c5 GIT binary patch literal 475 zcmcIg!Ab)$6r5~vQ9-;2g(9B!vIY@6i4^tRf;|)kDRGnSM%`q)$%4Z6RDa1Y^W@E! zRPYN7%w&>zd2h(z>tO%;^ZLHP?@DMN6WowU0w2Hwphz=p7??~j%Le2Xj3|g5!VSTV zi8QcgcsqxWFZ#&CO@iCU6RZ>T49^Ujp(mZ-h;R|wu11)XH_O8O3Hd;jK6Gz|St_5B z>KZA$it~M_F+S8w9}hYsjYw`vidVK)Tu5z%uSDlHpWF7uHKI_wuu}2TNvHDW-B;G+ z!a2P(wK6_G<8IZ7RxNC~FkStmT6aoShtzXxOv}mkI%IIWL|`c!v16t~-bohj?}Ge` V^nba+{L9+P?p0mIK;cjJ(jNr+X>$Mo literal 0 HcmV?d00001 diff --git a/tests/__init__.pyc b/tests/__init__.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c3f75af202c95aceed45834c87aac37e040854c1 GIT binary patch literal 163 zcmZSn%*(ZOlT&0e0~9aBk zG7?KmGWEmri?WLg5|dN)lk-zj_0x(|ic@t9DoZl*^K=u7i!;;na#Qn4bPe@OQj1H9 h_2c6+^D;}~fgc5S_J?v`s&fLRG1P3laxkO4M@^DlJsvQY5ER+gvPTujx{IH+a{FO6{rq z75)IfiGP4N!<#i~gYV#EUv{6zyYuFa6aH8qe*JcMkzK{G*u z*8!CQRUyqns(Li*QPrneANN9%f(k)-kG>Gy5nap%l=o>G4X~B^g)0)6xn;nqwC*Ui zGUD^x62LZDCS~r%m@A!`x|W$sOylN_bDJQwNs2~iP8ppPrqQ{343;;Ves0oQzAsLi z>VvH9y%s+05X180l2`&1Ah}sU@zf`iaSZ3s$2h{U2Vky$vTl~@rQbsO4b~yu3Azo) z1#|<%GNAf9-4K21F$3j07+}Q%*9SM~a7*BpJKO-=N{1VQTkUXb;MP0b2Dnj&3&D-= zxjs3VvB?7P6?*KmUSc!uU>2w|{f2sOg|3EFKM}ZC0s@AMk3B=kst?&;2)W-w3pz)I zr_m!+@?^pC5m)wamlU^w;_|D2p~t{Zs1*j^25gGjVel>VoM+rCYLDRn5OYYh2Jk)7 zo{^X$(QPmI`_O=JtF(2g&ZOg`a+NtqAxf>4wR?-?N*~v*PwPg;oZLdpaavj#bF!X% zSIrF`tZP%poVVKmy!N}HMLpkkHy>wZS+u#Zl3LoPbP;Cc!JcC_xipoWq`A_myG$FW zCTFI;vhy^Plg#9DQrO(e-TAe^M Date: Thu, 15 Jun 2017 17:06:04 +0000 Subject: [PATCH 2/2] Done --- .results.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.results.json b/.results.json index 3bd9851..6c1b0aa 100644 --- a/.results.json +++ b/.results.json @@ -1 +1 @@ -{"stats": {"passes": 1, "skipped": 0, "encoding": "UTF-8", "errors": 0, "failures": 0, "total": 1}, "results": [{"classname": "tests.test_squareOfNumbers:TestSquareOfNumbers", "type": "success", "name": "test_squareOfNumbers", "time": 0.0003120899200439453}]} \ No newline at end of file +{"stats": {"passes": 1, "skipped": 0, "encoding": "UTF-8", "errors": 0, "failures": 0, "total": 1}, "results": [{"classname": "tests.test_squareOfNumbers:TestSquareOfNumbers", "type": "success", "name": "test_squareOfNumbers", "time": 0.0001850128173828125}]} \ No newline at end of file