Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAhmed Khaleel
361 PointsNothing prints out
I have typed python functions.py in my console but there is no output.nothing prints there plz help
3 Answers
Qui Le
10,998 PointsHi Ahmed,
I look at your code. I think the issue is that you have indented your call to the function. When you indent it, you make it part of the function. Just unindent the last line, and it will run. Below is an example. Hope you see the error!
def function(): print(....)
function()
Ahmed Khaleel
361 PointsMy code is:::
def hows_the_khaleel(): print("hes is fine")
hows_the_khaleel() I have save the file as functions.py and then in console python functions.py i have also exit the shell.What's the issue here plz help.. https://w.trhou.se/x0962ge1bh here is snap
andhika pratikto
995 Pointsdid you save the file?
Natalie Loh
1,008 PointsWhat is your code?
Ahmed Khaleel
361 Pointsprint("hello world") is my code