diff --git a/02_challenge/02_challenge.py b/02_challenge/02_challenge.py index b41cd50..4a2686d 100644 --- a/02_challenge/02_challenge.py +++ b/02_challenge/02_challenge.py @@ -23,4 +23,4 @@ def fizzbuzz(max_num): #----START OF SCRIPT if __name__=='__main__': - fizzbuzz() + fizzbuzz(9) diff --git a/02_challenge/02_readme.md b/02_challenge/02_readme.md index e69de29..84e390d 100644 --- a/02_challenge/02_readme.md +++ b/02_challenge/02_readme.md @@ -0,0 +1,2 @@ +Completed the task +while executing I should get either Fizz or Buzz, I am getting both result when I try with multiples of 3 or 5 diff --git a/03_challenge/03_challenge.py b/03_challenge/03_challenge.py index 6e67d1f..858684d 100644 --- a/03_challenge/03_challenge.py +++ b/03_challenge/03_challenge.py @@ -12,7 +12,7 @@ def fizzbuzz(max_num): "This method implements FizzBuzz" # Google for 'range in python' to see what it does - for i in range(1,max_num): + for i in range(55): # % or modulo division gives you the remainder if i%3==0 and i%5==0: print(i,"fizzbuzz") @@ -23,4 +23,4 @@ def fizzbuzz(max_num): #----START OF SCRIPT if __name__=='__main__': - fizzbuzz('16') + fizzbuzz('15') diff --git a/03_challenge/03_readme.md b/03_challenge/03_readme.md index e69de29..37c9e7e 100644 --- a/03_challenge/03_readme.md +++ b/03_challenge/03_readme.md @@ -0,0 +1,2 @@ +changed the string value to 55 from (1,max_num) +Task completed \ No newline at end of file diff --git a/04_challenge/04_challenge.py b/04_challenge/04_challenge.py index a3f5edf..7b46aac 100644 --- a/04_challenge/04_challenge.py +++ b/04_challenge/04_challenge.py @@ -23,11 +23,11 @@ def fizzbuzz(max_num): for i in range(1,max_num): # % or modulo division gives you the remainder if i%num1==0 and i%num2==0: - print(i,three_mul+five_mul) + print(i,"three_mul+five_mul") elif i%num1==0: - print(i,three_mul) + print(i,"three_mul") elif i%num2==0: - print(i,five_mul) + print("i,five_mul") #----START OF SCRIPT if __name__=='__main__': diff --git a/04_challenge/readme.md b/04_challenge/readme.md index e69de29..1adc70d 100644 --- a/04_challenge/readme.md +++ b/04_challenge/readme.md @@ -0,0 +1,2 @@ +aligned the line 26 print +completed the task \ No newline at end of file diff --git a/06_challenge/06_challenge.py b/06_challenge/06_challenge.py index b09e24e..d8d4483 100644 --- a/06_challenge/06_challenge.py +++ b/06_challenge/06_challenge.py @@ -18,7 +18,7 @@ def fizzbuzz(max_num): three_mul = 'fizz' five_mul = 'buzz' num1 = conf.num1 - num2 = conf.num + num2 = conf.num2 # Google for 'range in python' to see what it does for i in range(1,max_num): # % or modulo division gives you the remainder diff --git a/06_challenge/06_readme.md b/06_challenge/06_readme.md index e69de29..a426eaf 100644 --- a/06_challenge/06_readme.md +++ b/06_challenge/06_readme.md @@ -0,0 +1,2 @@ +changed the num attribute to Num1 and Num2 +Task completed