Our end of year sale ends soon 👀 Get a year of Courses for $150 (40% off!)

Learn React with us!

Dive into new course Game Development with Phaser 👾

💥 ALL NEW: Code Adventures! ⚡ Dare to embark on a front end coding adventure 🌟

New AI course: Introduction to Computer Vision 💻

Get job-ready with our Career Toolbox Track's career advice, resume tips, and more 🧰

🤖 Check out all our AI content here 👀

Learn about our new Community Discord server here and join us on Discord here!

Students: got a cool project or resource to share? Submit it to Treehouse Links! 🤩

  • Home
  • Free Trial
  • Sign In
  • Plans
  • Tracks
  • Library
  • Community
  • Code Adventures
  • Support
  • Jobs
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • 21st Century Skills
      • • AI
      • • Android
      • • APIs
      • • Business
      • • C#
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Equity, Diversity, and Inclusion (EDI)
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • PHP
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
  • ibrahim Warsame
    ibrahim Warsame
    7,803 Points

    Is this logic?

    Posted November 20, 2015 4:37pm by ibrahim Warsame
    ibrahim Warsame
    7,803 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Esther Strom
    Esther Strom
    8,028 Points

    Workspace not indenting correctly

    Posted November 19, 2015 2:29am by Esther Strom
    Esther Strom
    8,028 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    3 Answers

  • mohammed abdi abdulahi warsame
    mohammed abdi abdulahi warsame
    4,926 Points

    Floats

    Posted November 8, 2015 6:41am by mohammed abdi abdulahi warsame
    mohammed abdi abdulahi warsame
    4,926 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • narvesh pradhan
    narvesh pradhan
    2,958 Points

    try and exception

    Posted October 28, 2015 7:19pm by narvesh pradhan
    narvesh pradhan
    2,958 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Juliette Tworsey
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Juliette Tworsey
    Front End Web Development Techdegree Graduate 32,425 Points

    TypeError: 'str' object is not callable TypeError: 'str' object is not callable

    Posted October 22, 2015 9:09pm by Juliette Tworsey
    .a{fill-rule:evenodd;}techdegree seal-36
    Juliette Tworsey
    Front End Web Development Techdegree Graduate 32,425 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    4 Answers

  • Troy Douglas
    Troy Douglas
    1,069 Points

    .75 * 5 = 3.75, rounded should yield 4, or "i" instead of "c"?

    Posted September 27, 2015 11:04pm by Troy Douglas
    Troy Douglas
    1,069 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    3 Answers

  • Chih-Wei Hsu
    Chih-Wei Hsu
    11,132 Points

    when input number is .5

    Posted September 21, 2015 9:40pm by Chih-Wei Hsu
    Chih-Wei Hsu
    11,132 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Manobhav Pandey
    Manobhav Pandey
    1,031 Points

    Why doesn't the following code work for float ?

    Posted September 12, 2015 3:35am by Manobhav Pandey
    Manobhav Pandey
    1,031 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    2 Answers

  • Faraz Ali
    Faraz Ali
    1,192 Points

    When will the except clause get executed ? Because if we give a float , it will get converted to int in the try clause

    Posted August 28, 2015 2:28pm by Faraz Ali
    Faraz Ali
    1,192 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    3 Answers

  • Disha Jagtap
    Disha Jagtap
    3,210 Points

    What does the narrator mean by if the number "blows up"?

    Posted August 20, 2015 7:56am by Disha Jagtap
    Disha Jagtap
    3,210 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Yasin Baala
    Yasin Baala
    253 Points

    Variable "ratio" messes everything up

    Posted July 28, 2015 12:44am by Yasin Baala
    Yasin Baala
    253 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Andrew Wallick
    Andrew Wallick
    299 Points

    SyntaxError whenever I try to run any command in the console.

    Posted June 24, 2015 6:51pm by Andrew Wallick
    Andrew Wallick
    299 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Aaron Brown
    Aaron Brown
    2,551 Points

    Index out of range when using float numbers smaller than character length. Why?

    Posted May 24, 2015 6:01pm by Aaron Brown
    Aaron Brown
    2,551 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • sandis
    sandis
    10,738 Points

    What is ratio?

    Posted May 15, 2015 4:11am by sandis
    sandis
    10,738 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Paul Feric
    PLUS
    Paul Feric
    Courses Plus Student 724 Points

    workspace run error

    Posted April 12, 2015 12:36am by Paul Feric
    Paul Feric
    Courses Plus Student 724 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    2 Answers

  • Wiphop Fong
    Wiphop Fong
    5,256 Points

    The difference between Try/Except and If/Else

    Posted March 27, 2015 3:48pm by Wiphop Fong
    Wiphop Fong
    5,256 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Sean Larsgard
    Sean Larsgard
    472 Points

    Invalid Syntax

    Posted March 2, 2015 5:54am by Sean Larsgard
    Sean Larsgard
    472 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • sreeharsha thanneeru
    PLUS
    sreeharsha thanneeru
    Courses Plus Student 1,297 Points

    Bug in the code in example

    Posted February 17, 2015 5:08pm by sreeharsha thanneeru
    sreeharsha thanneeru
    Courses Plus Student 1,297 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Elijah Eck
    Elijah Eck
    1,080 Points

    It says that there is a problem with my else when I type in python letter_percent.py. What am I doing wrong?

    Posted February 10, 2015 3:07pm by Elijah Eck
    Elijah Eck
    1,080 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Logan Wu
    Logan Wu
    10,792 Points

    What should one add a space between '?' and " in the input ()?

    Posted February 4, 2015 3:20am by Logan Wu
    Logan Wu
    10,792 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • David Burks
    David Burks
    731 Points

    Mine returns command prompt

    Posted January 26, 2015 12:30am by David Burks
    David Burks
    731 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Oleksii Kukharyshyn
    Oleksii Kukharyshyn
    470 Points

    Does the program understand everything under 1 as percentage of the word, but everything over 1 as a number of letter?

    Posted January 21, 2015 12:31am by Oleksii Kukharyshyn
    Oleksii Kukharyshyn
    470 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    3 Answers

  • Munjela Rumanna
    Munjela Rumanna
    1,483 Points

    Can you please use bigger font because it is really hard to follow what are you writing?

    Posted January 9, 2015 2:08am by Munjela Rumanna
    Munjela Rumanna
    1,483 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    2 Answers

  • Lianna Jarecki
    Lianna Jarecki
    580 Points

    Try: and Exception: if int(of an inputted number) will crash, why would float(of an inputted number) work?

    Posted January 8, 2015 6:43pm by Lianna Jarecki
    Lianna Jarecki
    580 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Kate Petry
    PLUS
    Kate Petry
    Courses Plus Student 9,432 Points

    I'm getting an error after I enter my number that indicates string index is out of range

    Posted January 8, 2015 6:22pm by Kate Petry
    Kate Petry
    Courses Plus Student 9,432 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    3 Answers

  • hognoodle
    hognoodle
    3,313 Points

    Last example

    Posted December 31, 2014 6:54am by hognoodle
    hognoodle
    3,313 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    2 Answers

  • markspenser
    PLUS
    markspenser
    Courses Plus Student 256 Points

    Please check my code. I made other version than Kenneth.

    Posted December 25, 2014 7:35pm by markspenser
    markspenser
    Courses Plus Student 256 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    7 Answers

  • qasimalbaqali
    qasimalbaqali
    17,839 Points

    [SOLVED] IndexError: string index out of range

    Posted December 1, 2014 12:57am by qasimalbaqali
    qasimalbaqali
    17,839 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    1 Answer

  • Renee Rhodes
    Renee Rhodes
    10,653 Points

    Cannot get percent_letter.py to work- error text in post

    Posted August 19, 2014 9:38pm by Renee Rhodes
    Renee Rhodes
    10,653 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    2 Answers

  • Austin Huynh
    Austin Huynh
    4,309 Points

    When running python_letter.py, no letters appear when I enter the word and the int. What did I do incorrectly?

    Posted July 31, 2014 1:49am by Austin Huynh
    Austin Huynh
    4,309 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Exceptions

    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
  • Perks
  • Public Library Access
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2023 Treehouse Island, Inc.