From 31e6b3470b08d513851c0058c32f9124ce6633ed Mon Sep 17 00:00:00 2001 From: tracedence Date: Mon, 1 Oct 2018 07:32:17 +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 -> 522 bytes q01_get_minimum_unique_square/build.py | 14 +++++++++++++- .../tests/__pycache__/__init__.cpython-36.pyc | Bin 197 -> 200 bytes .../tests/__pycache__/test.cpython-36.pyc | Bin 1571 -> 1574 bytes 6 files changed, 13 insertions(+), 1 deletion(-) 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..22f8705fc8bbcd88c8008e486c20fd49c0aec323 GIT binary patch literal 164 zcmXr!<>fLsy)l}Rfq~&M5W@jTzyXMhS%5?eLokCTqu)w~B9JhG_!X$1k)NBYUs9Bq zoSKrFmz=5}o?nz*TmaZbu^N)mJ8GZK@tQ;Uic^RnYJGK(_v(&Lje5_57= l^U_n}jr8N=GxIV_;^XxSDsOSv 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..3e72bfb414e550097e5e44ec8f4ac98ca661194d 100644 GIT binary patch literal 522 zcmaJ-y-ve05WaKL5=x60DlxIJbs_wT2_Xc`EDT5>6ovRmLVnsfj#Q*Dg_mLEJ>Uhr zGN8T!6X&upan^lzXMeu)=Y!E`pg-PjzYyRP{+Pr0DSLgyAVFdd1>PWn6w-Nt8$m+4 zveyX&Lg{uW`x)nQMS9D)dIgigg73lvjayerN5WQYwsnvFoV`9{h~Zhx4>h#VqQp(; z#0A`KKZC{=I@IDfc9;n@ZpEWxcM+=bHE6dL9r7q~xnKn_>6xAi%b1iMW}LLtrXS8` zR7&IIR8Aa&bAwN&uc&Tv{R(Q0iQl=OObhb03L}zKM&w^lRaVcq^rNXH|A9|*mLn|4i%=&^;Y_*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..02794d6 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,16 @@ # Write your solution here: def q01_get_minimum_unique_square(x,y): - "write your solution here" + result = [] # empty list for storing square number + for x in range(x,y+1): + if(sqrt(x) == int(sqrt(x))): #expression to check square number + result.append(x) # add square number to empty list + + return len(result) +q01_get_minimum_unique_square(4,16) + +sqrt(4) == 'int' +2.1 == 2 + + 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..4516a2f27b5559c43ebeee3122f3a1bfd1c2da11 100644 GIT binary patch delta 52 zcmX@gc!H6`n3tE!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..97d52ba9a77a29a3af4f963f40f973b6594e5a56 100644 GIT binary patch delta 55 zcmZ3?vy6wsn3tE! J&A%8mSpW#u6NCT& delta 52 zcmZ3+vzUj&n3tE!>F%?rjT~1QW%Kki@^e%56O%GB^