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 trial

Python Python Basics (2015) Logic in Python Fully Functional

Nothing 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
Qui Le
10,998 Points

Hi 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()

My 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

print("hello world") is my code