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

New No-Code Track! 🚀 New videos dropping every week—start learning today!

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

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

  • 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
    • Community Projects
    • Live Sessions
    • 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
  • Community Projects Live Sessions 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
  • gustavoalvarado
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    gustavoalvarado
    Python Development Techdegree Graduate 11,933 Points

    Pep8 Challenge

    Posted March 24, 2024 2:09am by gustavoalvarado
    .a{fill-rule:evenodd;}techdegree seal-36
    gustavoalvarado
    Python Development Techdegree Graduate 11,933 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,186 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,186 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,738 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,738 Points
    • Python
    • Technical Interview Prep: Python Basics
    • Basic Python
    • And I Will Try To Fix You

    1 Answer

  • Allison Seim
    Allison Seim
    1,738 Points

    There should be a blank line before a method.

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

    1 Answer

  • Allison Seim
    Allison Seim
    1,738 Points

    There should be two blank lines after a function and class

    Posted June 21, 2021 7:37pm by Allison Seim
    Allison Seim
    1,738 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.

    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.