🤑 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
  • Dave Edwards
    Dave Edwards
    3,861 Points

    No attribute being found if nothing entered when initiating a class

    Posted February 27, 2017 8:17pm by Dave Edwards
    Dave Edwards
    3,861 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    1 Answer

  • Garrett Phipps
    PLUS
    Garrett Phipps
    Courses Plus Student 2,808 Points

    Bound method elsewhere?

    Posted February 20, 2017 10:01pm by Garrett Phipps
    Garrett Phipps
    Courses Plus Student 2,808 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    1 Answer

  • Kristin Sellers
    Kristin Sellers
    5,457 Points

    Getting a NameError when trying this in workspace

    Posted February 10, 2017 7:45am by Kristin Sellers
    Kristin Sellers
    5,457 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    1 Answer

  • SC3 Rocks
    SC3 Rocks
    33,474 Points

    How does using kwargs reduce repeated code?

    Posted January 21, 2017 5:20am by SC3 Rocks
    SC3 Rocks
    33,474 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    1 Answer

  • Samuel Focht
    Samuel Focht
    4,321 Points

    Before kwargs?

    Posted December 26, 2016 10:41pm by Samuel Focht
    Samuel Focht
    4,321 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    0 Answers

  • Jeffrey Lehrer
    Jeffrey Lehrer
    2,247 Points

    Importing file/class into non-workspaces shell

    Posted October 14, 2016 10:04pm by Jeffrey Lehrer
    Jeffrey Lehrer
    2,247 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    0 Answers

  • vikas pal
    vikas pal
    11,563 Points

    why we use '**' this.

    Posted September 10, 2016 4:48pm by vikas pal
    vikas pal
    11,563 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    1 Answer

  • Hara Gopal K
    PLUS
    Hara Gopal K
    Courses Plus Student 10,027 Points

    **kwargs is a dictionary ?

    Posted August 19, 2016 3:06pm by Hara Gopal K
    Hara Gopal K
    Courses Plus Student 10,027 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    1 Answer

  • Kathryn Klarich
    Kathryn Klarich
    4,622 Points

    use of "self"

    Posted August 3, 2016 2:41am by Kathryn Klarich
    Kathryn Klarich
    4,622 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    1 Answer

  • Wilfredo Casas
    Wilfredo Casas
    6,174 Points

    Is there any advantage in using kwargs over other methods?

    Posted March 12, 2016 12:51am by Wilfredo Casas
    Wilfredo Casas
    6,174 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    2 Answers

  • Finlay Schlieper
    Finlay Schlieper
    6,935 Points

    Why do we not add the key, values of kwargs as a dictionary.

    Posted November 7, 2015 10:03am by Finlay Schlieper
    Finlay Schlieper
    6,935 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    2 Answers

  • Queenie Peng
    Queenie Peng
    8,052 Points

    TypeError: __init__() takes 4 positional arguments but 5 were given

    Posted September 22, 2015 6:51am by Queenie Peng
    Queenie Peng
    8,052 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    1 Answer

  • peter keves
    peter keves
    6,854 Points

    Python and Swift vs Java when it comes to instantiation

    Posted August 28, 2015 6:46pm by peter keves
    peter keves
    6,854 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    1 Answer

  • MUZ140920 Kudakwashe Murungu
    MUZ140920 Kudakwashe Murungu
    6,316 Points

    Instantiating error

    Posted July 25, 2015 9:46pm by MUZ140920 Kudakwashe Murungu
    MUZ140920 Kudakwashe Murungu
    6,316 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    3 Answers

  • Welby Obeng
    Welby Obeng
    20,340 Points

    understanding **kwargs and dictionary

    Posted January 24, 2015 1:20pm by Welby Obeng
    Welby Obeng
    20,340 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    3 Answers

  • Hank de Roover
    Hank de Roover
    1,578 Points

    __init__

    Posted October 2, 2014 9:36pm by Hank de Roover
    Hank de Roover
    1,578 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

    2 Answers

  • Ryan Malkmus
    Ryan Malkmus
    2,053 Points

    difficulty understanding kwargs

    Posted September 30, 2014 7:57pm by Ryan Malkmus
    Ryan Malkmus
    2,053 Points
    • Python
    • Object-Oriented Python (retired)
    • Objects
    • __init__

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