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.

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

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

  • 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
  • Hanan Ibrahim
    Hanan Ibrahim
    190 Points

    Hi, where can I get/download a Python program

    Posted September 22, 2025 7:40am by Hanan Ibrahim
    Hanan Ibrahim
    190 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    2 Answers

  • Miles Welch
    Miles Welch
    628 Points

    Why is there such a usage of console entry versus code entry? I can save code... I cannot save console entry

    Posted August 8, 2025 5:33pm by Miles Welch
    Miles Welch
    628 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Yehia Khaled
    Yehia Khaled
    1,518 Points

    Inserting format doesn't format it for me.

    Posted June 29, 2024 9:51am by Yehia Khaled
    Yehia Khaled
    1,518 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Andrew Padilla
    PLUS
    Andrew Padilla
    Courses Plus Student 207 Points

    Why would the "format" go after an argument? "You just bought {} {}.".format(3, "fidget spinners")

    Posted May 15, 2022 8:29pm by Andrew Padilla
    Andrew Padilla
    Courses Plus Student 207 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • nicolaspeterson
    nicolaspeterson
    8,569 Points

    Is len() a method or a function?

    Posted October 10, 2021 8:30am by nicolaspeterson
    nicolaspeterson
    8,569 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • jayda hendrickson
    jayda hendrickson
    3,413 Points

    How do I get my cursor to edit things I already typed?

    Posted August 21, 2020 3:49am by jayda hendrickson
    jayda hendrickson
    3,413 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • jordan tucker
    jordan tucker
    2,304 Points

    Hey, can someone show me a snippet example of the .format method in the text editor rather than the REPEL, please.

    Posted July 7, 2020 9:02pm by jordan tucker
    jordan tucker
    2,304 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    2 Answers

  • Femi Lamptey
    Femi Lamptey
    12,149 Points

    Workspace seems to have a bug

    Posted June 12, 2020 2:52pm by Femi Lamptey
    Femi Lamptey
    12,149 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Thierry van Wessel
    Thierry van Wessel
    2,141 Points

    From "treehouse~:/workspace$" to just ">>>" in your console

    Posted May 28, 2020 9:13pm by Thierry van Wessel
    Thierry van Wessel
    2,141 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    3 Answers

  • Robert Buchanan
    Robert Buchanan
    3,313 Points

    Is there multiple practice options after each lesson where we can work on different variations besides multiple choice?

    Posted May 16, 2020 1:10am by Robert Buchanan
    Robert Buchanan
    3,313 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    3 Answers

  • Andrew Hiser
    Andrew Hiser
    493 Points

    What do you (Craig/video instructor) mean when you say that strings can't be changed?

    Posted April 3, 2020 11:29pm by Andrew Hiser
    Andrew Hiser
    493 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    2 Answers

  • Stephani Dudrak
    Stephani Dudrak
    1,614 Points

    'clear' command doesn't work in REPL?

    Posted March 25, 2020 6:16pm by Stephani Dudrak
    Stephani Dudrak
    1,614 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    4 Answers

  • Alan T.
    Alan T.
    4,784 Points

    Why aren't there quotes surrounding 3?

    Posted January 29, 2020 5:49am by Alan T.
    Alan T.
    4,784 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    3 Answers

  • Arun Khanna
    Arun Khanna
    672 Points

    My workspace keeps resetting and everything I typed disappears, weather using Internet Explorer or Chrome.

    Posted January 13, 2020 12:49am by Arun Khanna
    Arun Khanna
    672 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Jonathan Santos
    Jonathan Santos
    189 Points

    How to go back and re-write words on the console without substituting what have already been written beforehand.

    Posted March 30, 2019 3:12am by Jonathan Santos
    Jonathan Santos
    189 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • salman khan
    salman khan
    1,283 Points

    error!!!!!!!

    Posted February 8, 2019 8:35pm by salman khan
    salman khan
    1,283 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Mark Roudebush
    Mark Roudebush
    901 Points

    Just want to say, I'm really loving Craig's teaching!

    Posted October 18, 2018 8:35pm by Mark Roudebush
    Mark Roudebush
    901 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    4 Answers

  • Pitrov Secondary
    Pitrov Secondary
    5,121 Points

    How do I know when to quote.something() or something(quote)?

    Posted September 23, 2018 9:41am by Pitrov Secondary
    Pitrov Secondary
    5,121 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    5 Answers

  • Nick Evershed
    Nick Evershed
    6,429 Points

    It says string are immutable, however you can just type quote = quote.upper() and it changes it

    Posted September 5, 2018 2:51pm by Nick Evershed
    Nick Evershed
    6,429 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    4 Answers

  • Ben Barber-Hays
    Ben Barber-Hays
    190 Points

    Craig keeps clearing his console with what looks like a key stroke but I can't recall how to do that.

    Posted August 28, 2018 11:18pm by Ben Barber-Hays
    Ben Barber-Hays
    190 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    6 Answers

  • thommsan
    thommsan
    219 Points

    Can't use open curly/square brackets with ALTGR + 7/8

    Posted August 20, 2018 1:07pm by thommsan
    thommsan
    219 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    3 Answers

  • Gurjeet Dhillon
    Gurjeet Dhillon
    458 Points

    Unable to use "\n" for a new line within a string; I am pasting my code here, please let me know what's wrong about it.

    Posted August 8, 2018 7:44am by Gurjeet Dhillon
    Gurjeet Dhillon
    458 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Gautam Basu
    Gautam Basu
    206 Points

    Why cannot I write str_var.len()?

    Posted August 5, 2018 7:16am by Gautam Basu
    Gautam Basu
    206 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    2 Answers

  • Lorrian Landicho
    Lorrian Landicho
    278 Points

    String Methods - please provide sample lines for variable.format("x", "y") in a script; I can't seem to make mine work

    Posted August 1, 2018 2:57am by Lorrian Landicho
    Lorrian Landicho
    278 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Emil Hejlesen
    Emil Hejlesen
    3,014 Points

    how do i create the curly brackets when im on mac in the console?

    Posted July 16, 2018 6:04pm by Emil Hejlesen
    Emil Hejlesen
    3,014 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Marie Kienast
    Marie Kienast
    188 Points

    How to add spaceholder brackets in workspace with Swiss keyboard (using a Mac) when alt + 8 or alt + 9 don't work

    Posted July 7, 2018 1:59pm by Marie Kienast
    Marie Kienast
    188 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Simon Safferson
    Simon Safferson
    138 Points

    I cant seem to make curley brackets on my computer. {}

    Posted May 27, 2018 12:19am by Simon Safferson
    Simon Safferson
    138 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Yaz R
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Yaz R
    Python Web Development Techdegree Student 1,262 Points

    After printing my string, how would i be able to add spaces without having to type the long string all over again?

    Posted May 18, 2018 8:57pm by Yaz R
    .a{fill-rule:evenodd;}techdegree
    Yaz R
    Python Web Development Techdegree Student 1,262 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

  • Jack Cummins
    Jack Cummins
    17,417 Points

    Should I use the commas to seperate my strings or the .format() function.

    Posted May 15, 2018 9:16pm by Jack Cummins
    Jack Cummins
    17,417 Points
    • Python
    • Python Basics
    • Types and Branching
    • String Methods

    1 Answer

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