From 33602d1d7c4c60d2223d952f8c010e6713735f2d Mon Sep 17 00:00:00 2001 From: Nirupama Kamat Date: Thu, 4 Oct 2018 20:51:32 -0700 Subject: [PATCH] Squashed two commits first commit second commit --- test.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test.py b/test.py index 7c0ef3c..f7ceb2a 100644 --- a/test.py +++ b/test.py @@ -21,6 +21,13 @@ def fizz_buzz(self, digit_1, digit_2): else: print i + def print_method(self): + print self.foo + print self.bar + print self.baz + print "Done" + print "Bye" + def json_to_csv(self, json_file_path, outfile_path): """Convert a file containing a list of flat JSON objects to a csv. @@ -34,3 +41,15 @@ def json_to_csv(self, json_file_path, outfile_path): writer.writerow(data[0].keys()) for item in data: writer.writerow(item.values()) + + def another_method(self, digit_1, digit_2): + for i in range(1, 100): + if i % digit_1 == 0: + if i % digit_2 == 0: + print 'Hello There!' + else: + print 'fizz!' + elif i % digit_2 == 0: + print 'Hi!' + else: + print i \ No newline at end of file