From e3c2b1a4332c3620a8bc7361f271ffdf32ec9931 Mon Sep 17 00:00:00 2001 From: Abigail Date: Thu, 6 Jan 2022 21:36:22 +0100 Subject: Week 004: Fix references. For part 1, this means fiddling with the fodder lines. --- challenge-004/abigail/python/ch-1.py | 17 ++++++++--------- challenge-004/abigail/python/ch-2.py | 4 ++-- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'challenge-004/abigail/python') diff --git a/challenge-004/abigail/python/ch-1.py b/challenge-004/abigail/python/ch-1.py index 0f7f8bf725..af5d05111a 100644 --- a/challenge-004/abigail/python/ch-1.py +++ b/challenge-004/abigail/python/ch-1.py @@ -1,11 +1,11 @@ #!/opt/local/bin/python # -# See ../README.md +# See https://theweeklychallenge.org/blog/perl-weekly-challenge-004 # # -# Run as python ch-1.py +# Run as: python ch-1.py # import sys @@ -66,11 +66,10 @@ for i in range (0, len (pi), in_size): sys . stdout . write ("\n") # -# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER -# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER -# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER -# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER? -# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER -# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER -# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER! +# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER +# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER +# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER +# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER +# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER!! +# FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER FODDER!! # diff --git a/challenge-004/abigail/python/ch-2.py b/challenge-004/abigail/python/ch-2.py index 4e94f7fe7d..26dd33b60f 100644 --- a/challenge-004/abigail/python/ch-2.py +++ b/challenge-004/abigail/python/ch-2.py @@ -1,11 +1,11 @@ #!/opt/local/bin/python # -# See ../README.md +# See https://theweeklychallenge.org/blog/perl-weekly-challenge-004 # # -# Run as python ch-2.py < input-file +# Run as: python ch-2.py < input-file # import fileinput -- cgit From 395f87e5947194f9cd61a8e48fb04fd30bfc14d7 Mon Sep 17 00:00:00 2001 From: Abigail Date: Sun, 9 Jan 2022 21:54:05 +0100 Subject: Week 4, part 1: All languages should give the same result. Make we all languages have the same rounding issues. --- challenge-004/abigail/python/ch-1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'challenge-004/abigail/python') diff --git a/challenge-004/abigail/python/ch-1.py b/challenge-004/abigail/python/ch-1.py index af5d05111a..1bc0fa720b 100644 --- a/challenge-004/abigail/python/ch-1.py +++ b/challenge-004/abigail/python/ch-1.py @@ -39,7 +39,7 @@ pi = "%(uP7+Y`ME)gy(7')v?;%s^qc(Mj1}16idp'ONGs'2m.o,1HLY'}~P61@@Y-" + \ "'S/z}#vS|i)S9[=*/nCG)PMaY-{pML);vN?%kRcr#*.Tg,x;42'(1w.0dA)S" + \ ")-us%.#1$R-rkwf%m%B-(ctK8+4Sn^%*C1Y-wqsr%eNg11%$De&&07q+%1>-" + \ "+mCl2%)V#w%#y:[,?t*D$64`9.U+{`-SBX-+gi/o)0B$q#V$tW+#lmM)';EH" + \ - "%yFPZ/Gy(~,dl@h)A&ju-Co2,-du++)[Awk&wE}p*H;._.[]4W+Eb7K#iiKB"; + "%yFPZ/Gy(~,dl@h)A&ju-Co2,-du++)[Awk&wE}p*H;._.[]4W+Eb7K#iiK?"; in_size = 5 -- cgit