Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Callum AndersonData Analysis Techdegree Student 10,188 Points
when running the 'stock.py' through the console. No action occurs
Snapshot Below it's Stock.py In the shell when trying to run the file with the obvious 'python filename.py' it just creates a new line instead of running the file. I'm sure spelling is correct and even in the file itself but I'm having trouble figuring out a solution. I've left a snapshot of the workspace which I've followed throughout the video and just to explain further what I mean about the shell too.
Shell: treehouse:~/workspace$ python stock.py treehouse:~/workspace$
Jennifer NordellTreehouse Teacher
Hi there, Callum Anderson! There are actions that are occurring but there is nothing in that file that causes anything to display. All the print statements are commented out. Below your final line in
print(total). This will print out the total of the prices of the books