From 21bd2bfcf57ad41913b6310e20588519b4bd70c8 Mon Sep 17 00:00:00 2001 From: aksmungekar Date: Sat, 29 Sep 2018 06:05:32 +0000 Subject: [PATCH] Done --- __pycache__/__init__.cpython-36.pyc | Bin 0 -> 165 bytes .../__pycache__/__init__.cpython-36.pyc | Bin 191 -> 195 bytes .../__pycache__/build.cpython-36.pyc | Bin 468 -> 596 bytes q01_get_minimum_unique_square/build.py | 16 ++++++++++++++-- .../tests/__pycache__/__init__.cpython-36.pyc | Bin 197 -> 201 bytes .../tests/__pycache__/test.cpython-36.pyc | Bin 1571 -> 1575 bytes 6 files changed, 14 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..b6146d2f8143cea6293bb8005417a5acd10e8cb1 GIT binary patch literal 165 zcmXr!<>kr{Ss%^Fz`*brh~WSv-~hzMEI=ZKA(%mv(QhR~5l9$8{0h>~$j?pHPs}dP zEzL_$%}y-R56>^kE-pw+PSsD&Pf68JD@sf*Nz94QNKDR7Eh n%*jaw>WVkgkB`sH%PfhH*DI*J#bJ}1pHiBWY6r5b7>F4F%;+ow 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..b8c81badc1a1164c265e3cb10b6d6a7b718e388b 100644 GIT binary patch delta 53 zcmdnbc$ksHn3tC;Lu7sQL=JPs0{x8q+*JLXiuGMmi?d7e3nnHc F0|2HT5zGJp 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..42bd8ef415ea101705d4a1ad37d2bd0d83fe6339 100644 GIT binary patch literal 596 zcmaJ;v2NQi5Is^-;5u-Z0x1xrK!+?^thikbr$9Sr$xt9cKrkdD6A~qxlz^m=C*=qF z8JY4wngVq4k`M5dqnrYse8N4R$h&v%$nT@k@c8KY`jr6ugB=Sn{(CkH zfsOERW0HAkRKhc7>LOJcx5@9)W^TcSN<=ADa%Z`yc+TcrWXf7zWNfajE>b4uJkJ$Y zv2V%pY{F7iF{2A@YQyS6FKflzvgTGLx3$jYc=50qPIK)lQJTeUi0$2Wv_F%*<>P5y z3ZAc2)Ut;%VZ?Az@<@11i#Ltc} jTKnf;e?Yj1w>vwW{uXUdJeZnN*14MX9RBGCgJJLnng*0C 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..99151fa 100644 --- a/q01_get_minimum_unique_square/build.py +++ b/q01_get_minimum_unique_square/build.py @@ -1,9 +1,21 @@ +# %load q01_get_minimum_unique_square/build.py # Default imports -from math import sqrt +#from math import sqrt # Write your solution here: def q01_get_minimum_unique_square(x,y): - "write your solution here" + list1 = range(x,y+1) + square_list = [items for items in list1 if items**0.5 == int(items**0.5) ] + return len(square_list) + ''''mylist=list(range(x,y+1)) + srt=min([int(sqrt(x)) for x in mylist if sqrt(x).is_integer()]) + return srt''' +q01_get_minimum_unique_square(3,9) + + +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..769af49036266eb92d3bd7828bf7223c67dd5452 100644 GIT binary patch delta 53 zcmX@gc#@IBn3tC;TV#FoL=JPsGX0GF+*JLXiuGMmi?d7e3nnIH F0syO|5%d56 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..d5ad8cbdb6f70429feb4d79dbcee50b9b9fa57e6 100644 GIT binary patch delta 56 zcmZ3?vz&*+n3tC;M`V5UMvkkDibeVv`MIh3iP^=urFrS8*@;E^;rT_`#RZAUsrt$J MDXE)(F>0~^017b^kpKVy delta 52 zcmZ3^vzUj&n3tE!>F%?rjT~1QW%Kki@^e%56O%GB^