From fea0416101950dc2863283b6587b1f816a782d26 Mon Sep 17 00:00:00 2001 From: Abigail Date: Wed, 5 Jan 2022 00:33:49 +0100 Subject: Week 2: Fix reference --- challenge-002/abigail/python/ch-1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'challenge-002/abigail/python/ch-1.py') diff --git a/challenge-002/abigail/python/ch-1.py b/challenge-002/abigail/python/ch-1.py index de6839af0a..6a6c9f15f0 100644 --- a/challenge-002/abigail/python/ch-1.py +++ b/challenge-002/abigail/python/ch-1.py @@ -1,7 +1,7 @@ #!/opt/local/bin/python # -# See ../READ.md +# See https://theweeklychallenge.org/blog/perl-weekly-challenge-002 # # -- cgit From 48ebf06904931ac7aa23376e2a8ee726a07d1bcf Mon Sep 17 00:00:00 2001 From: Abigail Date: Wed, 5 Jan 2022 00:49:52 +0100 Subject: Week 2. Make it work with python3 --- challenge-002/abigail/python/ch-1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'challenge-002/abigail/python/ch-1.py') diff --git a/challenge-002/abigail/python/ch-1.py b/challenge-002/abigail/python/ch-1.py index 6a6c9f15f0..0c7d4ebe5d 100644 --- a/challenge-002/abigail/python/ch-1.py +++ b/challenge-002/abigail/python/ch-1.py @@ -5,10 +5,10 @@ # # -# Run as python ch-1.py < input-file +# Run as: python ch-1.py < input-file # import fileinput for line in fileinput . input (): - print int (line) + print (int (line)) -- cgit