From 162cd5b9836ec6b1efd15ce0fadf507674911f78 Mon Sep 17 00:00:00 2001 From: Sandesh373 Date: Sat, 29 Sep 2018 06:41:51 +0000 Subject: [PATCH] Done --- __pycache__/__init__.cpython-36.pyc | Bin 0 -> 164 bytes .../__pycache__/__init__.cpython-36.pyc | Bin 191 -> 194 bytes .../__pycache__/build.cpython-36.pyc | Bin 468 -> 596 bytes q01_get_minimum_unique_square/build.py | 9 ++++++--- .../tests/__pycache__/__init__.cpython-36.pyc | Bin 197 -> 200 bytes .../tests/__pycache__/test.cpython-36.pyc | Bin 1571 -> 1574 bytes 6 files changed, 6 insertions(+), 3 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..2ecf25d2eaf1785859210196406b65f0ed7b31f3 GIT binary patch literal 164 zcmXr!<>l%ZSs%^Fz`*brh~WSv-~hzMEI=ZKA(%mv(QhR~5l9$8{0h|1$j?pH4^GTW zNiEJWHaFG}&o9a@E=WvH)lbe(N!3p)N=zF4FZP+UF 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..a61a3a61ea1c912ef71b897069eec0b5bc5942c8 100644 GIT binary patch delta 52 zcmdnbc!-h1n3tEUUu1psL=JO>eEp34+*JMG#JrT$;tXSRWBu^_qU_>=#N<@{ Hi809lsCN-j delta 49 zcmX@axSx^3n3tDp+4W~p6FJOfbM!Ovb5r#blQJ^(UGmHGa`F>XiuGMmi?d7e3ns=V F0|2G#5y}7n 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..a111707f50afc165877494f83c8b4d8526125680 100644 GIT binary patch literal 596 zcmaJ;J#X7E5WS=1#4s9kY=Nd7iY{8Lq#n8$MuBF|;-Nr_f?!EjVogaFNdZmZPRbw1 zuP8e8|7h*xzu>7y1^t+Ez8o*hmMPmrbSfwWyW$<>JjEf8V%`-wLU7*(jZVc0vYWc`4*ZJ16Q5 zFO4&G!DT6|)peoy>%2WX=Yg{BI>4tV`bVye3!8eK=+vP o{nJR#h%U2aNGlP_ahc=K|E$Lij{ehS)u_(uRT`}#Jz~@JHwW#MO8@`> literal 468 zcmaJ-O-lnY5S?VVAhq5K_9FCJ53XO}MMSh`FCK(~gt&>_*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..c52e142 100644 --- a/q01_get_minimum_unique_square/build.py +++ b/q01_get_minimum_unique_square/build.py @@ -1,9 +1,12 @@ +# %load q01_get_minimum_unique_square/build.py # Default imports from math import sqrt -# Write your solution here: - def q01_get_minimum_unique_square(x,y): - "write your solution here" + return len([int(sqrt(i)) for i in range(x,y+1) if sqrt(i).is_integer()]) + +q01_get_minimum_unique_square(24,27) + + 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..69ed5a748520e8b6659283d7638a6ab54f7c315e 100644 GIT binary patch delta 52 zcmX@gc!H6`n3tDpvdH@Ai5%t%rTQ89xvBcWiFqlh#Tmxt#`@v;McKs#iOH$@$@wX% H6Js&~tX~mr delta 49 zcmX@Xc$AUDn3tDp+x2Hr6FJOfi}W+{b5r#blQJ^(UGmHGa`F>XiuGMmi?d7e3ns>A F0syOV5%K^4 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..2781f5c23634b7a7a53717ad672893db770f1821 100644 GIT binary patch delta 55 zcmZ3?vy6wsn3tDpvdH@AjT~1Q6$7o*U delta 52 zcmZ3+vzUj&n3tE!>F%?rjT~1QW%Kki@^e%56O%GB^