🤑 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

  • 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
  • Daffa Alif Pratama
    Daffa Alif Pratama
    2,316 Points

    Cannot convert to integers

    Posted December 4, 2015 2:56pm by Daffa Alif Pratama
    Daffa Alif Pratama
    2,316 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    2 Answers

  • Rachel Leffel
    Rachel Leffel
    7,418 Points

    I am getting a syntax error when trying to run python string_multiply.py

    Posted August 5, 2015 9:46pm by Rachel Leffel
    Rachel Leffel
    7,418 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    2 Answers

  • devi prasad sahoo
    devi prasad sahoo
    213 Points

    how to access hive via python

    Posted July 29, 2015 11:59am by devi prasad sahoo
    devi prasad sahoo
    213 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    0 Answers

  • del maddox
    del maddox
    2,514 Points

    I used the string conversion code from the tutorial lecture. when I run python string_multiply.py. there's no message

    Posted June 6, 2015 8:19pm by del maddox
    del maddox
    2,514 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    4 Answers

  • Tonderai Sydney Musonza
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Tonderai Sydney Musonza
    Python Development Techdegree Student 4,814 Points

    whats the difference between ordering python to print an integer and just typing the integer.

    Posted June 5, 2015 10:08am by Tonderai Sydney Musonza
    .a{fill-rule:evenodd;}techdegree
    Tonderai Sydney Musonza
    Python Development Techdegree Student 4,814 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    2 Answers

  • Niall Maher
    Niall Maher
    16,985 Points

    When declaring a variable in console I keep getting "-bash: a: command not found"

    Posted May 31, 2015 3:01pm by Niall Maher
    Niall Maher
    16,985 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    1 Answer

  • Karrerah White
    Karrerah White
    10,118 Points

    Working with ints and floats in python

    Posted May 22, 2015 1:38am by Karrerah White
    Karrerah White
    10,118 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    2 Answers

  • Tsung Wei Tsai
    Tsung Wei Tsai
    583 Points

    What if I want to answer in decimal?

    Posted May 11, 2015 11:25am by Tsung Wei Tsai
    Tsung Wei Tsai
    583 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    1 Answer

  • Herb Bresnan
    Herb Bresnan
    10,658 Points

    Why do floats behave the way they do?

    Posted May 8, 2015 8:47pm by Herb Bresnan
    Herb Bresnan
    10,658 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    2 Answers

  • Robby Mansur
    Robby Mansur
    242 Points

    NameError: name input not defined

    Posted April 13, 2015 5:58pm by Robby Mansur
    Robby Mansur
    242 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    3 Answers

  • Paul Feric
    PLUS
    Paul Feric
    Courses Plus Student 724 Points

    workspace not working

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

    1 Answer

  • Bill McKenna
    Bill McKenna
    586 Points

    Printing String X amount of times.

    Posted March 28, 2015 10:26pm by Bill McKenna
    Bill McKenna
    586 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    2 Answers

  • syalih
    syalih
    16,468 Points

    input()

    Posted March 28, 2015 11:56am by syalih
    syalih
    16,468 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    2 Answers

  • Kenneth Simpson
    Kenneth Simpson
    1,162 Points

    Why did he use the int?

    Posted February 25, 2015 10:58pm by Kenneth Simpson
    Kenneth Simpson
    1,162 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    1 Answer

  • Kenneth Simpson
    Kenneth Simpson
    1,162 Points

    Int to float question.

    Posted February 25, 2015 10:48pm by Kenneth Simpson
    Kenneth Simpson
    1,162 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    2 Answers

  • Welby Obeng
    Welby Obeng
    20,340 Points

    why ValueError: invalid literal for int() with base 10: 'How many?

    Posted January 14, 2015 3:55pm by Welby Obeng
    Welby Obeng
    20,340 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    1 Answer

  • markspenser
    PLUS
    markspenser
    Courses Plus Student 256 Points

    Float/int is data type, but also a class ?

    Posted December 25, 2014 6:54pm by markspenser
    markspenser
    Courses Plus Student 256 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    4 Answers

  • Kollyn Lund
    Kollyn Lund
    20,644 Points

    Will the input() object always output data as a string by default? Thanks!

    Posted December 15, 2014 6:44pm by Kollyn Lund
    Kollyn Lund
    20,644 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    1 Answer

  • sadik salad
    sadik salad
    1,916 Points

    am getting error even tho my scripts its similar to the teacher one

    Posted July 22, 2014 6:30pm by sadik salad
    sadik salad
    1,916 Points
    • Python
    • Python Basics (Retired)
    • Things That Count
    • Basic Numbers

    5 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.