From 5601691eba6aef7923d77924f79ba3a30b077858 Mon Sep 17 00:00:00 2001 From: 007sankalp Date: Wed, 9 Aug 2017 20:10:54 +0000 Subject: [PATCH] Done --- square_of_numbers.py | 8 ++++++++ square_of_numbers.pyc | Bin 0 -> 452 bytes tests/__init__.pyc | Bin 0 -> 156 bytes tests/test_squareOfNumbers.pyc | Bin 0 -> 1395 bytes 4 files changed, 8 insertions(+) create mode 100644 square_of_numbers.pyc create mode 100644 tests/__init__.pyc create mode 100644 tests/test_squareOfNumbers.pyc diff --git a/square_of_numbers.py b/square_of_numbers.py index e69de29..44dfb53 100644 --- a/square_of_numbers.py +++ b/square_of_numbers.py @@ -0,0 +1,8 @@ + +def squareOfNumbers(n): + d={} + for i in range(1,n+1): + d[i]=i*i + return d +n=raw_input() +#print (d) diff --git a/square_of_numbers.pyc b/square_of_numbers.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2eed8f7c35a5bc958a485743614ede7d17e87872 GIT binary patch literal 452 zcmcJK!AiqG5QhIvt=NJHQWW|G@eorldMP64p{EG-P!uGr*^P!KyJ>cV3hAldd|Y3^ z*^RH@vh&R_Gdugw;OB5WF25f${2fOAhRmE01n>ns0g_=yK>)$<5C&ArT;qUjkL;Gr zToMXk%kXgqOOF{k&(mFiyXOhE0Xlyt9hCyiH&d)A><1==n;1ISA)(>wRfg^d>vGCd zcorcg;9(XN#c#Tj@oaWwxLWhFj#s)_o0?}b&a`lqi%1lijdUKFP0Jf;;@+n^PgPsJ z$i|%4pZ17`^@aO9>C0RSeqBWnNv literal 0 HcmV?d00001 diff --git a/tests/test_squareOfNumbers.pyc b/tests/test_squareOfNumbers.pyc new file mode 100644 index 0000000000000000000000000000000000000000..03a5139d80d38c8104aca84b2556f7af118ea4f4 GIT binary patch literal 1395 zcmcgsO>fgc5S_J?v`N2Gs47)(LE_*`Nqgb|LWM#lE=4$%N^>#BUJFxuH|(wtmD*Fe z@t62H`~$=p-mFm@d>%gBZM5cpo*v#G!rCv z9Z(fe9nvhMx<|7f)qR@v@hl`Ms1TI*=nK&`(b;T3d7q}y09%#6a76+$w~TNitvgJu zjQBjagkYO2lQMT>%uAJNV`SzM-MD$<+$KP!lcG_XE44}r-KgB%1=KCnRtTLQM+!3MyF9c%<_rGu>kTkBx!z&1Kq2yA?V z^~u4EO%{M#sIh0g#AaN>EI_B~CH35p&PQbK30y1z38Tf=9w24Kr#x9mx!FSrdWQ;6 zqdTbN@q*l4$+n8_{V9Ho_&F_ZP+ z>w2#7qA}XU%-gLaJomeyMLphjHy>wZRkU1KiIKLcT!b0s?*!wmR*^q5IpIbjtf^e&M#TD`#|{F$K%TBoT_SSQQ&$ ztMl0ow#1s)#%MLLSxKVOS|*7vQ$w1jj`TC@0s_=@9