From 83c7dec4bdbd152543414a853b002424f4506b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CYOUR?= Date: Tue, 8 Aug 2017 11:25:53 +0000 Subject: [PATCH] Done --- square_of_numbers.py | 11 +++++++++++ square_of_numbers.pyc | Bin 0 -> 521 bytes tests/__init__.pyc | Bin 0 -> 153 bytes tests/test_squareOfNumbers.pyc | Bin 0 -> 1386 bytes 4 files changed, 11 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..5d60480 100644 --- a/square_of_numbers.py +++ b/square_of_numbers.py @@ -0,0 +1,11 @@ +def squareOfNumbers(n): + dictionary =dict() + if n <= 100: + for i in range(1,n+1): + dictionary[i] = i**2 + return dictionary + + +n = input('Enter n :') + +print squareOfNumbers(n) diff --git a/square_of_numbers.pyc b/square_of_numbers.pyc new file mode 100644 index 0000000000000000000000000000000000000000..54b09636c95bf1c352dd7b72eee47892538ffd93 GIT binary patch literal 521 zcmcJL!Ab)$6h&`Rg|<`#6$DpZxR@^L)U6Z|Y*9BA+C{M-Wt^lMYLhm}fQ5EdH-3d* z;Me&BzNGyH2j0!idzqUvQ~Euq{(OHu<=8!()*C8!P9lI$U<618!LVT%aY)+o;P37Q z#~>-u!JLrCo7zn`gO9b0cKhYF#!%decmrZc$`bx^%ma&19^L*^9L9V!rf;l(Zc@ zPI}vRAaDTytio#Sj2$sop0SXv_v;zfgc5S_J?v`xQKs47)(LE_*`Nqa6rg+e7RL2@dU=3*IpEllj)u)97~YER|D zjUUNBK%C*t8nwaqI^LJv=ke~md6R^{HixS}zF%ha?+WpKf?>}9Ic`A}Q7vdDNbowK zDxf-~Sx9w{W<9F=H0$G8NK#NCDDTlXqFbWN*?{ssO``#}D*xb$1ZHj(a4xMoO|6Xh zJhuX{O_oWSyAkH4%Cs>ubBS);qH%5qq|!;zsLYjGC53KO?jD2Xjiz6l)W{FTq^Uni zWAC)^X>Twrzb=U-Kmn4Q1r$$xG8xBk4tNo3Vsb2aGq+eql(ygGIfLuV= zKr90?Kk1t2OOF{S-^Tze?zuj=L5Eubx7y(b;MO|a5Zro)+W@!O;kLkSceoJT=#J}? zgBd$40Jl&hpY;lxaSO9RU8uLzb89pol6fL=GRmtT8^kaZt&ycBY`hZ6J=6`n?q zP|3-X<=b4@|6MA%4N5M588Gx1*oktD!M6dMQtmVO7JAMz?v?V0;RFzKNVEa)J<^_$ z=ps>VFZk!sfN)zX>r$0T$4BL5<{*VAwN@JU4#`zMu3ev-M#h}nQp{OeSs8P(o_t>~ zG+s1Do0#)SJ3M@%KBbp!bzX7*Sk8PTo`!z`9R?=x literal 0 HcmV?d00001