From e739058bbd8f7936fb579d23120c74af68960ecd Mon Sep 17 00:00:00 2001 From: rameshpedagani Date: Sat, 29 Sep 2018 05:53:19 +0000 Subject: [PATCH] Done --- __pycache__/__init__.cpython-36.pyc | Bin 0 -> 168 bytes .../__pycache__/__init__.cpython-36.pyc | Bin 191 -> 198 bytes .../__pycache__/build.cpython-36.pyc | Bin 468 -> 653 bytes q01_get_minimum_unique_square/build.py | 18 ++++++++++++++++-- .../tests/__pycache__/__init__.cpython-36.pyc | Bin 197 -> 204 bytes .../tests/__pycache__/test.cpython-36.pyc | Bin 1571 -> 1578 bytes 6 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 __pycache__/__init__.cpython-36.pyc diff --git a/__pycache__/__init__.cpython-36.pyc b/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6997700bf224b0507b3102b6a5165a49e70af02c GIT binary patch literal 168 zcmXr!<>lh$T_4TJz`*brh~WSv-~hzMEI=ZKA(%mv(QhR~5l9$8{0i02$j?pHFG|c! zEzT%NO-W2o%*)gd&o9a@E=WvH)lbe(N!3p)N=zF4F8cHm} literal 0 HcmV?d00001 diff --git a/q01_get_minimum_unique_square/__pycache__/__init__.cpython-36.pyc b/q01_get_minimum_unique_square/__pycache__/__init__.cpython-36.pyc index f9de2261d1eb71e5e8e14dbb4363527739e2f278..0c31acc7f3a96ebb9bab60fe054c83a8f2dbb397 100644 GIT binary patch delta 56 zcmdnbc#M(5n3tD}n|FQmL=JP6V*QN#+*JLd#N5>4jDpmZ#Pr0xO#SfuqU_>=#N<@{ Li809l?d=mN delta 49 zcmX@cxSx^3n3tDp+4W~p6FJOfbM!Ovb5r#blQJ^(UGmHGa`F>XiuGMmi?d7e3nnHf F0|2JC5z+tv diff --git a/q01_get_minimum_unique_square/__pycache__/build.cpython-36.pyc b/q01_get_minimum_unique_square/__pycache__/build.cpython-36.pyc index 45ec8aee9d1537d3ddceb40ada69e0f616a72575..595b353ef4be3dabf32ada8229ff06c4f25e36a3 100644 GIT binary patch literal 653 zcmaJ;J#W-N5ZzhtUCb$=NfD5sqp^g}2~bd+4kW14q(C}^R?F^UoAc-HT1wERa{d56 zgNpy-3W@6eLMmn)A*ISl^ZdNtdGluc`sir!_W1Yb@4(n!b}u62?=k&L1j7uJtbz>y zGu%WsY{M-#!psH^4B6ZWV&>q2CGj3BSOTN)oeP@N8wLr^Fh5}WHwXp{zhQyx*bYo| z!Uq144RFl^?D&9<0t8NM;uAx0ajwzn6eK*yyukD?5Hghd^6VN=jvbTm^c-Nzo!G%o z-U$?d3~yrmd4~?8q7Dfk`SNsx%U{fq+-;lYO=VN3D(mys8kMQKNIx}h>szI5svBd| zZ%*l;N|`IYwa%$}EAzq?btZML%F@=Em9Nt7^h{_*xkg<2U^*l>Ywo+Nx+jJ z_!m4mTSPoLVO}!HEa@1o2aCj$CRvg@x&+&AsGvu% zpmqNW8j9q})8N4>FNbpz?9iDqcxCjkkXBlPq@OK}lGw3aPo-^($F6crX)iGzrI9>F zGLN0y1npy@L-hi-i)mjfD@-Lbep9GyY#wxJxNzB6x|uik*{$Wd=Ort6K9d&NXRJ_G z=_$(#UX~K8vHh&x-D6YfS*5h9LdAksb&$-}fm@l~1XYTi`+3~@H?LL7wJiZnNuTs^ m*&aq0I9FP6U#!MjU9CF*1M8R;*N!VALMcyLEnF)>FZl-Pe0kph diff --git a/q01_get_minimum_unique_square/build.py b/q01_get_minimum_unique_square/build.py index e012f4e..00ff119 100644 --- a/q01_get_minimum_unique_square/build.py +++ b/q01_get_minimum_unique_square/build.py @@ -1,3 +1,4 @@ +# %load q01_get_minimum_unique_square/build.py # Default imports from math import sqrt @@ -5,5 +6,18 @@ # Write your solution here: def q01_get_minimum_unique_square(x,y): - "write your solution here" - + x_list=[x for x in range(x,y+1) if x**0.5==int(x**0.5)] + print(x_list) + print(len(x_list)) + return len(x_list) + +q01_get_minimum_unique_square(9,25) + + + +q01_get_minimum_unique_square(3,9) + + + + + diff --git a/q01_get_minimum_unique_square/tests/__pycache__/__init__.cpython-36.pyc b/q01_get_minimum_unique_square/tests/__pycache__/__init__.cpython-36.pyc index 7a482a59da012a8b99067243cb0c176c77498cf1..6db3feb954ea932f08ba29ee39562d46d5f1abae 100644 GIT binary patch delta 56 zcmX@gc!rU~n3tD}pLc!qL=JP6O8t!d+*JLd#N5>4jDpmZ#Pr0xO#SfuqU_>=#N<@{ Li7}Y~@+}iY delta 49 zcmX@Zc$AUDn3tDp+x2Hr6FJOfi}W+{b5r#blQJ^(UGmHGa`F>XiuGMmi?d7e3nnIK F0syQ%5&8fC diff --git a/q01_get_minimum_unique_square/tests/__pycache__/test.cpython-36.pyc b/q01_get_minimum_unique_square/tests/__pycache__/test.cpython-36.pyc index 1297e551f19f751197062170a3af8e3c4b333297..44bef505adc4184a9018f391c48fda4e5e97087e 100644 GIT binary patch delta 59 zcmZ3?vxYO(+TG};ta delta 52 zcmZ3*vzUj&n3tE!>F%?rjT~1QW%Kki@^e%56O%GB^