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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Ondina Lipsa](https://secure.gravatar.com/avatar/feae68f6168084ea9745feead2e1f290?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ondina Lipsa
368 PointsAssertion Error...
Hello, can you please tell me why my code doesn't work?
# insert your code here
my_tuple='I','love','python'
1 Answer
![boi](https://uploads.teamtreehouse.com/production/profile-photos/10720541/micro_Kratos.jpg)
boi
14,242 PointsAh, the good ol regex. Seems like to check your solution regex is used in the back. You'll learn about regex soon.
Coming to the error displayed *AssertionError: Regex didn't match: 'my_tuple\s=\s[/(]?\'?\"?I\"?\'?,\s\'?\"?love\"?\'?,\s\'?\"?python\"?\'?[/)]?' *.
notice that my_tuple
have \s
before and after the equals sign, \s
means space, so try this;
my_tuple = 'I', 'love', 'python'
Give a space before, after the equals sign, and after every comma.
![Ondina Lipsa](https://secure.gravatar.com/avatar/feae68f6168084ea9745feead2e1f290?s=60&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Ondina Lipsa
368 PointsOh yes, thank you so much, it worked!
Ondina Lipsa
368 PointsOndina Lipsa
368 PointsTraceback (most recent call last): File "", line 22, in test_code_expectations AssertionError: Regex didn't match: 'my_tuple\s=\s[/(]?\\'?\"?I\"?\\'?,\s\\'?\"?love\"?\\'?,\s\\'?\"?python\"?\\'?[/)]?' not found in "my_tuple=('I','love','python',)" : To create a tuple, my_tuple should be equal to comma separated values. You can also use parentheses around the values if you want.