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 Functions and Looping Functions

Son-Hai Nguyen
Son-Hai Nguyen
2,481 Points

So one question, the function here is the "def" right? And the "yell" and "text" are technically made up names only?

So one question, the function here is the "def" right? And the "yell" and "text" are technically made up names only?

2 Answers

Jeff Muday
MOD
Jeff Muday
Treehouse Moderator 28,722 Points

def is a python keyword which means we are defining a Python function or as Craig calls it Python "method" on the same line. It MUST be there to define a function.

yell is the function name, it is "made up" or arbitrary-- it is good programming practice to use meaningful names so the code can be easily read/maintained by others.

text is the function's parameter (or input variable), it is "made up" or arbitrary too -- just like function names, variable names should be meaningful for the same reasons (readability/maintainability).

Son-Hai Nguyen
Son-Hai Nguyen
2,481 Points

Thank you so much Jeff!!! I got it better now!!!