jz-feng / greentext

Code in memes
124 stars 5 forks source link

Fix print() in greentext.py and utils.py #5

Open pabloqpacin opened 1 year ago

pabloqpacin commented 1 year ago

Hi, wanted to try greentext with a basic helloWorld.gt program. However, running python3 greentext < helloWorld.gt returned the following error message:

File ".../greentext/greentext.py", line 368 print result, SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

Therefore fixed the function print() in both greentext.py and utils.py to include the parenthesis. Now helloWorld.gt works like a charm. Thought it was a good idea to include it in the repo but that doesn't really matter :^)