thewhitetulip / build-app-with-python-antitextbook

Aims to teach Python3 by example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing Print statement

vezycash opened this issue · comments

https://github.com/vezycash/build-app-with-python-antitextbook/blob/master/01-intro-to-python.md#using-glob

current code

>>> import glob
>>> files = glob.glob('*.txt')
>>> files

(in windows python 3.6, calling files without a print statement does not display anything
Fix

import glob
files = glob.glob('*.txt')
print(files)

I didn't know that python on windows doesn't print the value of a variable when we type it. I'll update every instance now.

Instead of changing each and every statement, I have added a note at the first occurrence that if the normal thing doesn't work, please use print.

Thanks for pointing this out!