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

Can someone help me with this?

Practice Creating and Using Functions in Python, task 3

The code in the using_a_function.py is making use of an external function named tweet.

The code here is intended to make a console based application that sends tweets. I've written the first part for you.

For this first task, can you please just call the tweet function and pass in the message that the user enters?

could you send a copy of the code that has been already written out?

2 Answers

All this task is asking you to do is call the "tweet()" and pass it the "massage" from the user input.

tweet(message)

In order to call (or use) a function you need to write the function name followed by parentheses, you should put your variable inside the parentheses.

tweet(message)

# tweet ---> your function name
# message ---> your variable