From 19a91f87129ce0f6544f6016165a27dd42a0a8e2 Mon Sep 17 00:00:00 2001 From: Isaiah Chen Date: Mon, 9 Sep 2019 10:36:17 -0400 Subject: [PATCH] Fixed your code you dummy --- bad_code_1.py | 2 +- bad_code_2.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bad_code_1.py b/bad_code_1.py index e0c1b30..65fa8e2 100644 --- a/bad_code_1.py +++ b/bad_code_1.py @@ -1,3 +1,3 @@ if __name__ == "__main__": -print 'I hate it when people call me "Fifa", that's my cat's name!' + print("I hate it when people call me \"Fifa\", that\'s my cat\'s name!") diff --git a/bad_code_2.py b/bad_code_2.py index 3b3b64b..03b8cad 100644 --- a/bad_code_2.py +++ b/bad_code_2.py @@ -1,4 +1,4 @@ if __name__ == "__main__": - # For you're ouwn helth, Im cuting you of to a max of 4 beers. - for i in range(4, -1, -1): - print("%d bottles of beer on the wall, %d bottles of beer. Take one down, pass it around, %d bottles of beer on the wall." % (i, i, i)) + # For your own health, I'm cutting you off to a max of 4 beers. + for i in range(4, 0, -1): + print("%d bottles of beer on the wall, %d bottles of beer. Take one down, pass it around, %d bottles of beer on the wall." % (i, i, i - 1))