✨ 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
    • Operator Spacing
    • Close
  • Daniel Kondakov
    Daniel Kondakov
    1,337 Points

    what does "blank line at the end of file"

    Posted on Feb 26 by Daniel Kondakov
    Daniel Kondakov
    1,337 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • Doug Devitre
    Doug Devitre
    16,516 Points

    Fix the spacing around commas, operators, and in function calls Fixing whitespace.

    Posted on Jun 23, 2024 by Doug Devitre
    Doug Devitre
    16,516 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • Jeremy Dyck
    Jeremy Dyck
    12,013 Points

    PEP8 Quiz: What am I Missing Here?

    Posted on Aug 16, 2023 by Jeremy Dyck
    Jeremy Dyck
    12,013 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • León Pozo
    León Pozo
    2,276 Points

    Stuck at Operator Spacing Challenge.

    Posted on Jan 18, 2022 by León Pozo
    León Pozo
    2,276 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • Michael Viloria
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Michael Viloria
    Python Development Techdegree Student 2,322 Points

    Bummer: Your file has 1 error(s) on line(s) 15: no newline at end of file.

    Posted on Jun 10, 2021 by Michael Viloria
    .a{fill-rule:evenodd;}techdegree
    Michael Viloria
    Python Development Techdegree Student 2,322 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • AKHIL MIRYALA
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    AKHIL MIRYALA
    Python Development Techdegree Student 4,373 Points

    'No newline at end of file' error

    Posted on Aug 10, 2020 by AKHIL MIRYALA
    .a{fill-rule:evenodd;}techdegree
    AKHIL MIRYALA
    Python Development Techdegree Student 4,373 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    2 Answers

  • Sinazo Nongena
    Sinazo Nongena
    2,517 Points

    Fix the spacing around commas, operators, and in function calls

    Posted on Jul 27, 2020 by Sinazo Nongena
    Sinazo Nongena
    2,517 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • noel acio
    noel acio
    1,470 Points

    Fix the spacing around commas, operators, and in function calls

    Posted on May 22, 2020 by noel acio
    noel acio
    1,470 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    2 Answers

  • Yusuf Gillani
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Yusuf Gillani
    Python Web Development Techdegree Student 3,643 Points

    Need Help!

    Posted on Apr 28, 2019 by Yusuf Gillani
    .a{fill-rule:evenodd;}techdegree
    Yusuf Gillani
    Python Web Development Techdegree Student 3,643 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • Mathew Yangang
    Mathew Yangang
    4,433 Points

    end of line issue

    Posted on Jan 23, 2019 by Mathew Yangang
    Mathew Yangang
    4,433 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • Travis Dalhoff
    Travis Dalhoff
    21,035 Points

    Bummer! Try again! I no longer receive the hints saying what is wrong. I'm leaving an empty line with no whitespace.

    Posted on Mar 24, 2018 by Travis Dalhoff
    Travis Dalhoff
    21,035 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • MATTHEW AKROYD
    MATTHEW AKROYD
    3,982 Points

    no new line at end of file

    Posted on Dec 12, 2017 by MATTHEW AKROYD
    MATTHEW AKROYD
    3,982 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    2 Answers

  • Julian Silvestri
    Julian Silvestri
    4,214 Points

    Cannot pass operator spacing code challenge, Python

    Posted on Jul 18, 2017 by Julian Silvestri
    Julian Silvestri
    4,214 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • Mubarig CISMAN
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Mubarig CISMAN
    Python Web Development Techdegree Student 2,547 Points

    Bummer! Don't change the code, just fix the whitespace

    Posted on Jul 10, 2017 by Mubarig CISMAN
    .a{fill-rule:evenodd;}techdegree
    Mubarig CISMAN
    Python Web Development Techdegree Student 2,547 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    2 Answers

  • saif ahmad
    saif ahmad
    6,352 Points

    operator spacing code challenge

    Posted on Oct 25, 2016 by saif ahmad
    saif ahmad
    6,352 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    3 Answers

  • MUZ140869 Tafadzwa Kawayuka
    MUZ140869 Tafadzwa Kawayuka
    2,532 Points

    write better python

    Posted on Oct 7, 2015 by MUZ140869 Tafadzwa Kawayuka
    MUZ140869 Tafadzwa Kawayuka
    2,532 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    2 Answers

  • Cheri Nadell
    Cheri Nadell
    2,954 Points

    Again for the "Fix the spacing . . ." challenge, there's an error that I don't see existing.

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

    2 Answers

  • MUZ140127 Munyaradzi Muduka
    MUZ140127 Munyaradzi Muduka
    10,337 Points

    task1 of 1 Fix the spacing around commas, operators, and in function calls

    Posted on Mar 30, 2015 by MUZ140127 Munyaradzi Muduka
    MUZ140127 Munyaradzi Muduka
    10,337 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    3 Answers

  • Rabih Atallah
    Rabih Atallah
    3,405 Points

    what does the error message mean?

    Posted on Mar 30, 2015 by Rabih Atallah
    Rabih Atallah
    3,405 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • Fareez Ahmed
    Fareez Ahmed
    12,728 Points

    No newline at the end of file/blank line contains whitespace?

    Posted on Jan 30, 2015 by Fareez Ahmed
    Fareez Ahmed
    12,728 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

  • MUZ140057 Dumisani Nyamusa
    MUZ140057 Dumisani Nyamusa
    8,029 Points

    cleaner code

    Posted on Jan 19, 2015 by MUZ140057 Dumisani Nyamusa
    MUZ140057 Dumisani Nyamusa
    8,029 Points
    • Python
    • Write Better Python
    • Cleaner Code
    • Operator Spacing

    1 Answer

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.