import UIKit import Foundation var funWithStrings = UIImage(named:"kittenWithOrangeString.jpg"): let myFirstString = "no " let mySecondString = "no problems" let theTruth = myFirstString + ", " + mySecondString var doggyDiet = "Lulu eats 25lbs of dog food per month" var dogName = "Ferris" var ferrisPic = UIImage(named:"SpringerdoodleFerris.jpg")
var lbsPerDay = 0.75 var daysPerMonth:Double = 30.0 doggyDiet = "\(dogName) eats \(lbsPerDay * daysPerMonth) of dog food per month" var frankiePic = UIImage(named:"frankie.jpeg")! lbsPerDay = 0.25 dogName = "Lil Frankie" doggyDiet = "\(dogName) eats \(lbsPerDay * daysPerMonth) of dog food per month"
access an array of characters
var password = "Meet me in St. Louis" for character in password.characters { if character == "e" { print("found an e!") } else { } }