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 Functions, Packing, and Unpacking Packing and Unpacking Packing

Jorgen Rasmussen
Jorgen Rasmussen
3,367 Points

Workspace Error

When I launch the workspace this is the code that greets me: def my_function(arg1, arg2, arg3, arg4): print(arg1) print(arg2) print(arg3) print(arg4)

my_function("Hello", "I, "love", "python") When I run it I get a SyntaxError seemingly because of "I instead of "I". Just a heads up

2 Answers

Add closing braces for "I". That should work fine.

Josh Keenan
Josh Keenan
19,652 Points

Comment answers this well