From 4bb05f879039205fc2ea5fbaf16ed9d706fd064a Mon Sep 17 00:00:00 2001 From: Abigail Date: Tue, 4 Jan 2022 14:49:23 +0100 Subject: Week 1: Fix Python errors. --- challenge-001/abigail/python/ch-1.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'challenge-001/abigail/python/ch-1.py') diff --git a/challenge-001/abigail/python/ch-1.py b/challenge-001/abigail/python/ch-1.py index 193586bcf6..ddb4e89f78 100644 --- a/challenge-001/abigail/python/ch-1.py +++ b/challenge-001/abigail/python/ch-1.py @@ -1,11 +1,14 @@ +#!/opt/local/bin/python + # -# See ../READE,md +# See https://theweeklychallenge.org/blog/perl-weekly-challenge-000 # # -# Run as python ch-1.py < input-file +# Run as: python ch-1.py < input-file # + import fileinput for line in fileinput . input (): - print line . replace ("e", "E"), line . count ("e") + print (line . replace ("e", "E"), line . count ("e")) -- cgit