Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Print statement #18

Closed
vezycash opened this issue Feb 11, 2017 · 2 comments
Closed

Missing Print statement #18

vezycash opened this issue Feb 11, 2017 · 2 comments

Comments

@vezycash
Copy link

vezycash commented Feb 11, 2017

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)

@thewhitetulip
Copy link
Owner

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.

@thewhitetulip
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants