✨ 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
    • Python Basics
    • Types and Branching
    • String Methods
    • Close
  • Yehia Khaled
    Yehia Khaled
    1,518 Points

    Inserting format doesn't format it for me.

    Posted on Jun 29, 2024 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 on May 15, 2022 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 on Oct 10, 2021 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 on Aug 21, 2020 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 on Jul 7, 2020 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 on Jun 12, 2020 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 on May 28, 2020 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 on May 16, 2020 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 on Apr 3, 2020 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 on Mar 25, 2020 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 on Jan 29, 2020 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 on Jan 13, 2020 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 on Mar 30, 2019 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 on Feb 8, 2019 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 on Oct 18, 2018 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 on Sep 23, 2018 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 on Sep 5, 2018 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 on Aug 28, 2018 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 on Aug 20, 2018 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 on Aug 8, 2018 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 on Aug 5, 2018 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 on Aug 1, 2018 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 on Jul 16, 2018 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 on Jul 7, 2018 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 on May 27, 2018 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 on May 18, 2018 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 on May 15, 2018 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.