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.

Python Python Basics (Retired) Ins & Outs Ins & Outs

Richard Mulder
Richard Mulder
2,320 Points

Calling Variables

After defining a variable, how do you call said variable into others?

name = 'Rick'
treehouse = 'Tree' + 'house'
email_greeting = 'Treehouse loves Rick'

1 Answer

Chris Shaw
Chris Shaw
26,650 Points

Hi Richard,

The answer to task 3 is something you've done in task 2 which is concatenation which is the process of joining two or more strings together to form one single and larger string, in Python concatenation is achieved by simply using the + symbol which as I mentioned earlier you've already done in task 2.

See the below.

email_greeting = treehouse + ' loves ' + name

It's just that simple :smiley:

Happy coding!