aboutsummaryrefslogtreecommitdiffstats
path: root/csci1913
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-12-11 12:46:31 -0600
committerRossTheRoss <msattr@gmail.com>2019-12-11 12:46:31 -0600
commit398305930958b378ba9aa8aa0d0fc07217d17590 (patch)
tree7e6ae122a2cd05332140c52af0225da7aa3a6371 /csci1913
parentChange hash function to also correct one (diff)
downloadhomework-398305930958b378ba9aa8aa0d0fc07217d17590.tar
homework-398305930958b378ba9aa8aa0d0fc07217d17590.tar.gz
homework-398305930958b378ba9aa8aa0d0fc07217d17590.tar.bz2
homework-398305930958b378ba9aa8aa0d0fc07217d17590.tar.lz
homework-398305930958b378ba9aa8aa0d0fc07217d17590.tar.xz
homework-398305930958b378ba9aa8aa0d0fc07217d17590.tar.zst
homework-398305930958b378ba9aa8aa0d0fc07217d17590.zip
Change things
Diffstat (limited to '')
-rw-r--r--csci1913/Python/project1_strap012.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/csci1913/Python/project1_strap012.py b/csci1913/Python/project1_strap012.py
index 6cf6361..c825359 100644
--- a/csci1913/Python/project1_strap012.py
+++ b/csci1913/Python/project1_strap012.py
@@ -92,7 +92,7 @@ G.rule('Story', ('Phrase',)) # 09
G.rule('Story', ('Phrase', 'and', 'Story')) # 10
G.rule('Story', ('Phrase', 'but', 'Story')) # 11
G.rule('Start', ('Story', '.')) # 12
-for n in range (0, 5):
+for _ in range (0, 5):
print(G.generate())
# the cat bit the boy .
@@ -124,7 +124,7 @@ J.rule('Story', ('Phrase', 'and', 'Story')) # 10
J.rule('Story', ('Phrase', 'but', 'Story')) # 11
J.rule('Start', ('Story', '.')) # 12
-for f in range(0, 5):
+for _ in range(0, 5):
print(J.generate())
# the walrus is the sentence and the diamond generated the walrus .