🤑 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
  • 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.

    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.