Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

code improvement and how is there a input command?

I've just finished the first course and wanted to get started on program that when you put the name of a apple product in the program would tell you about it heres where I've got to with it

println("enter the name of a apple product")

var apple = ["Apple I":"The first computer ever designed and made by steve jobs and steve wozniak","Steve Jobs":"The co founder of apple:Born 1955:Died 2011"]
var apple_input = "Apple I"

if apple_input == "Apple I" {
    println(apple["Apple I"])
    var Steve_Jobs = ("do you want to know more about steve jobs?\n\n")
    print ("\n\(Steve_Jobs)")
    var Steve_Jobs_input = "yes"
    if Steve_Jobs_input == "yes" {
        println(apple["Steve Jobs"])
    }

    } 

and I was wondering what I could do to streamline/improve it and how to input commands into it like the python input function

thanks bye :)