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
  • Igor Alves
    PLUS
    Igor Alves
    Courses Plus Student 4,115 Points

    the extra credit question ask me to send a dictionairy as a parameter, how can i do that?

    Posted November 23, 2015 9:27pm by Igor Alves
    Igor Alves
    Courses Plus Student 4,115 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    1 Answer

  • Javid Beykzadeh
    Javid Beykzadeh
    5,863 Points

    Why am I getting Type 'String' does not conform to protocol 'SequenceType'?

    Posted October 18, 2015 9:56pm by Javid Beykzadeh
    Javid Beykzadeh
    5,863 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    1 Answer

  • Victoria M
    Victoria M
    8,730 Points

    Error on Xcode when typing function

    Posted September 23, 2015 12:07am by Victoria M
    Victoria M
    8,730 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    3 Answers

  • alexvalladares
    alexvalladares
    21,478 Points

    Teacher's name

    Posted August 25, 2015 9:26am by alexvalladares
    alexvalladares
    21,478 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    2 Answers

  • boris said
    boris said
    3,607 Points

    I get this strange error message and i don't know what it means please help

    Posted August 23, 2015 3:14am by boris said
    boris said
    3,607 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    1 Answer

  • Fedor Andreev
    Fedor Andreev
    11,203 Points

    What is the difference between return and ->

    Posted July 28, 2015 7:29pm by Fedor Andreev
    Fedor Andreev
    11,203 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    2 Answers

  • Samar Khanna
    Samar Khanna
    1,757 Points

    Why won't switching changing the initial value of "found" to "false" work?

    Posted April 20, 2015 9:54am by Samar Khanna
    Samar Khanna
    1,757 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    2 Answers

  • Charles Cleland
    PLUS
    Charles Cleland
    Courses Plus Student 510 Points

    Nothing is displaying in the results pane when I enter the tuple code

    Posted March 13, 2015 11:52am by Charles Cleland
    Charles Cleland
    Courses Plus Student 510 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    1 Answer

  • tytyty
    tytyty
    4,974 Points

    Why did the playground output .0 and .1 ?

    Posted February 1, 2015 7:14pm by tytyty
    tytyty
    4,974 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    1 Answer

  • Robert Sheppard
    Robert Sheppard
    2,549 Points

    How does the n variable change? for n in names { if n == name { found = true } }

    Posted January 31, 2015 6:10am by Robert Sheppard
    Robert Sheppard
    2,549 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    2 Answers

  • Taylor Smith
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Taylor Smith
    iOS Development Techdegree Graduate 14,153 Points

    I am stuck on this challenge. I'm not really sure what it's asking me to do. please help!!

    Posted October 15, 2014 9:44pm by Taylor Smith
    .a{fill-rule:evenodd;}techdegree seal-36
    Taylor Smith
    iOS Development Techdegree Graduate 14,153 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    6 Answers

  • Spencer Bunting
    Spencer Bunting
    1,144 Points

    in the challenge section of this video, I am unable to apply the information from this video to the greeting func.

    Posted October 14, 2014 3:33pm by Spencer Bunting
    Spencer Bunting
    1,144 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    1 Answer

  • robert cioffi
    robert cioffi
    3,466 Points

    For some reason the error messages don't always show, how do I ensure all error messages are shown?

    Posted September 30, 2014 12:25am by robert cioffi
    robert cioffi
    3,466 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    1 Answer

  • Mostafa Raafat
    Mostafa Raafat
    5,979 Points

    Whats the difference between returning a tuple and array

    Posted September 20, 2014 5:45pm by Mostafa Raafat
    Mostafa Raafat
    5,979 Points
    • iOS
    • Swift Functions and Optionals
    • Parameters and Tuples
    • Tuples

    2 Answers

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