✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
    • Showing results for:
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports
    • Close
  • Travers Geoffray
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Travers Geoffray
    Python Development Techdegree Graduate 26,967 Points

    Not sure what I'm doing wrong here on the import spacing either. Also, what is from re? This has not been covered yet.

    Posted on Nov 3, 2021 by Travers Geoffray
    .a{fill-rule:evenodd;}techdegree seal-36
    Travers Geoffray
    Python Development Techdegree Graduate 26,967 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    1 Answer

  • Tyler Cortez
    Tyler Cortez
    2,771 Points

    correct the import style

    Posted on Sep 10, 2021 by Tyler Cortez
    Tyler Cortez
    2,771 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    1 Answer

  • David Gameiro
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    David Gameiro
    Python Development Techdegree Student 5,521 Points

    Ask for a new line at the end but then says incorrect when one is added.

    Posted on Mar 29, 2021 by David Gameiro
    .a{fill-rule:evenodd;}techdegree
    David Gameiro
    Python Development Techdegree Student 5,521 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    2 Answers

  • Luke Tate
    PLUS
    Luke Tate
    Courses Plus Student 2,256 Points

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

    Posted on Nov 6, 2020 by Luke Tate
    Luke Tate
    Courses Plus Student 2,256 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    1 Answer

  • David J
    David J
    10,340 Points

    I'm not sure what else to try. Any suggestions?

    Posted on Mar 15, 2020 by David J
    David J
    10,340 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    1 Answer

  • Leonard Katova
    Leonard Katova
    2,691 Points

    import stlye

    Posted on Sep 1, 2019 by Leonard Katova
    Leonard Katova
    2,691 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    1 Answer

  • Daniel Lounsbury
    Daniel Lounsbury
    1,744 Points

    I can't find what I am getting wrong here on my import list

    Posted on Nov 29, 2018 by Daniel Lounsbury
    Daniel Lounsbury
    1,744 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    2 Answers

  • Nosayaba Omo-Ogbebor
    Nosayaba Omo-Ogbebor
    2,071 Points

    Challenge Task 1 of 1 Correct the import style

    Posted on Apr 28, 2018 by Nosayaba Omo-Ogbebor
    Nosayaba Omo-Ogbebor
    2,071 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    1 Answer

  • Ashmit Pathak
    Ashmit Pathak
    4,441 Points

    plz tell where am i getting wrong

    Posted on Apr 6, 2018 by Ashmit Pathak
    Ashmit Pathak
    4,441 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    2 Answers

  • tyler bucasas
    tyler bucasas
    2,453 Points

    correct the import style

    Posted on Mar 20, 2018 by tyler bucasas
    tyler bucasas
    2,453 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    1 Answer

  • Mahyar Najizad
    Mahyar Najizad
    5,863 Points

    I'm going crazy!!!

    Posted on Mar 9, 2018 by Mahyar Najizad
    Mahyar Najizad
    5,863 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    1 Answer

  • Robert Young
    Robert Young
    1,391 Points

    Correct the import style

    Posted on May 31, 2017 by Robert Young
    Robert Young
    1,391 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    5 Answers

  • Cheri Nadell
    Cheri Nadell
    2,954 Points

    Correct the import style challenge gives the same newline error. This is getting tiresome! Help?!

    Posted on May 7, 2015 by Cheri Nadell
    Cheri Nadell
    2,954 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Imports

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.