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 Write Better Python Cleaner Code Imports

I have added each module, on their own lines, but I keep getting it wrong.

No matter if I either, type "import" re, or keep from re, I always get an ambiguous "Try again!" message. What am I doing wrong? Why? Am I to space each module imported out?

starter.py
import re
import os
import sys
import logging
import match
import search

1 Answer

Put import os, import sys, and import logging on their own lines; but don't change from re import match, search.