diff options
author | RossTheRoss <msattr@gmail.com> | 2019-12-11 12:46:31 -0600 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-12-11 12:46:31 -0600 |
commit | 398305930958b378ba9aa8aa0d0fc07217d17590 (patch) | |
tree | 7e6ae122a2cd05332140c52af0225da7aa3a6371 /csci1913/Python | |
parent | Change hash function to also correct one (diff) | |
download | homework-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 'csci1913/Python')
-rw-r--r-- | csci1913/Python/project1_strap012.py | 4 |
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 . |