Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • gustavoalvarado
    seal-mask
    PLUS
    .a{fill-rule:evenodd;}techdegree seal-36
    gustavoalvarado
    Python Development Techdegree Graduate 14,316 Points

    Pep8 Challenge

    Posted March 24, 2024 2:09am by gustavoalvarado
    .a{fill-rule:evenodd;}techdegree seal-36
    gustavoalvarado
    Python Development Techdegree Graduate 14,316 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Jorge Grajeda
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Jorge Grajeda
    Python Development Techdegree Graduate 8,189 Points

    Technical Interview Prep: And I Will Try To Fix You

    Posted January 22, 2023 5:17am by Jorge Grajeda
    .a{fill-rule:evenodd;}techdegree seal-36
    Jorge Grajeda
    Python Development Techdegree Graduate 8,189 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Ricardo Lanari
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ricardo Lanari
    Python Development Techdegree Graduate 10,003 Points

    Blank lines after class or function?

    Posted April 4, 2022 9:00pm by Ricardo Lanari
    .a{fill-rule:evenodd;}techdegree seal-36
    Ricardo Lanari
    Python Development Techdegree Graduate 10,003 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Joe Wingfield
    Joe Wingfield
    7,149 Points

    Fix pep8 mistakes

    Posted February 8, 2022 1:34pm by Joe Wingfield
    Joe Wingfield
    7,149 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    4 Answers

  • Andy McDonald
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Andy McDonald
    Python Development Techdegree Graduate 13,801 Points

    Cant pass: says there should be a blank line before method

    Posted December 25, 2021 2:41am by Andy McDonald
    .a{fill-rule:evenodd;}techdegree seal-36
    Andy McDonald
    Python Development Techdegree Graduate 13,801 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Travers Geoffray
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Travers Geoffray
    Python Development Techdegree Graduate 26,967 Points

    Getting error that there should a be a blank line before a method. Not sure what method it's referring to...

    Posted November 18, 2021 12:01am by Travers Geoffray
    .a{fill-rule:evenodd;}techdegree seal-36
    Travers Geoffray
    Python Development Techdegree Graduate 26,967 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    4 Answers

  • Danielle Murray
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Danielle Murray
    Python Development Techdegree Graduate 7,755 Points

    I've checked the guidelines for PEP8 and I cant seem to find anymore problems could you please help me. Thank you.

    Posted October 7, 2021 9:05pm by Danielle Murray
    .a{fill-rule:evenodd;}techdegree seal-36
    Danielle Murray
    Python Development Techdegree Graduate 7,755 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    4 Answers

  • Noor Hafiza Binti Ibrahim
    Noor Hafiza Binti Ibrahim
    11,712 Points

    Still not passing it

    Posted August 19, 2021 4:53am by Noor Hafiza Binti Ibrahim
    Noor Hafiza Binti Ibrahim
    11,712 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Noor Hafiza Binti Ibrahim
    Noor Hafiza Binti Ibrahim
    11,712 Points

    Bummer: There should be a blank line before a method.

    Posted August 18, 2021 11:39am by Noor Hafiza Binti Ibrahim
    Noor Hafiza Binti Ibrahim
    11,712 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Noor Hafiza Binti Ibrahim
    Noor Hafiza Binti Ibrahim
    11,712 Points

    what else did i miss?

    Posted August 12, 2021 4:22pm by Noor Hafiza Binti Ibrahim
    Noor Hafiza Binti Ibrahim
    11,712 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Serge Kovalenko
    Serge Kovalenko
    9,526 Points

    Still getting an error for 2 blank lines despite having blank lines after everything.

    Posted July 28, 2021 10:18am by Serge Kovalenko
    Serge Kovalenko
    9,526 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Allison Seim
    Allison Seim
    1,740 Points

    Still getting the same error after making corrections "There should be a blank line before a method"

    Posted June 22, 2021 6:35pm by Allison Seim
    Allison Seim
    1,740 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Allison Seim
    Allison Seim
    1,740 Points

    There should be a blank line before a method.

    Posted June 22, 2021 1:59pm by Allison Seim
    Allison Seim
    1,740 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Allison Seim
    Allison Seim
    1,740 Points

    There should be two blank lines after a function and class

    Posted June 21, 2021 7:37pm by Allison Seim
    Allison Seim
    1,740 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    4 Answers

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

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord