From 428973b505c2bfd7886ad9a422518a058d3b6a50 Mon Sep 17 00:00:00 2001 From: Anitha Date: Mon, 8 Nov 2021 20:11:50 -0500 Subject: [PATCH 1/2] Fixed 5th challenge --- 05_challenge/05_challenge.py | 4 ++-- 05_challenge/05_readme.md | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/05_challenge/05_challenge.py b/05_challenge/05_challenge.py index 0f9bdbd..0c46b08 100644 --- a/05_challenge/05_challenge.py +++ b/05_challenge/05_challenge.py @@ -17,8 +17,8 @@ def fizzbuzz(max_num): # we will make our script 'tighter' in one of coming exercises three_mul = 'fizz' five_mul = 'buzz' - with open('mifile.txt','r') as f: - print 'i have created' + with open('myfile.txt','r') as f: + print ('i have created') num1 = int(f.readline()) num2=int(f.readline()) max_num = int(f.readline()) diff --git a/05_challenge/05_readme.md b/05_challenge/05_readme.md index e69de29..df3e8d6 100644 --- a/05_challenge/05_readme.md +++ b/05_challenge/05_readme.md @@ -0,0 +1,2 @@ +changed "myfile.txt" +entered paranthesis \ No newline at end of file From fb57ffcc97f2ed050cd941942831793c6f0e2517 Mon Sep 17 00:00:00 2001 From: Anitha Date: Mon, 8 Nov 2021 20:21:06 -0500 Subject: [PATCH 2/2] Fixed 8th challenge --- 08_challenge/08_challenge.py | 2 +- 08_challenge/08_readme.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/08_challenge/08_challenge.py b/08_challenge/08_challenge.py index a7147d2..71d3ebf 100644 --- a/08_challenge/08_challenge.py +++ b/08_challenge/08_challenge.py @@ -12,7 +12,7 @@ class Fizz_Buzz: "Class to implement FizzBuzz for multiples of 3 and 5" - def fizzbuzz(max_num): + def fizzbuzz(self, max_num): "This method implements FizzBuzz" # adding some redundant declarations on purpose diff --git a/08_challenge/08_readme.md b/08_challenge/08_readme.md index e69de29..728119e 100644 --- a/08_challenge/08_readme.md +++ b/08_challenge/08_readme.md @@ -0,0 +1 @@ +added self in def \ No newline at end of file