Skip to content

Commit 8433d5f

Browse files
committed
showed print statements
1 parent f45f954 commit 8433d5f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//: Playground - noun: a place where people can play
2+
3+
import UIKit
4+
5+
var favoriteWord = "mercurial" // Use your own favorite word!
6+
var favoriteColor = "blue" // Use your own favorite color!
7+
var favoriteMusician = "Nirvana" // Use your own favorite musician!
8+
9+
print(favoriteWord)
10+
print(favoriteColor)
11+
print(favoriteMusician)
12+
13+
print("Hi Mom! My favorite word is serendipity, my favorite color is green, and my favorite musician is Billy Joel.")
14+
15+
let color = "blue"
16+
print("The sky is \(color).")
17+
18+
print("Hi Mom! My favorite word is \(favoriteWord), my favorite color is \(favoriteColor), and my favorite musician is \(favoriteMusician).")
19+
20+
21+
22+
//////////////////////////////////////////////////
23+
24+
var favoriteSuperHero = "Iron Man"
25+
26+
print("My favorite superhero is \(favoriteSuperHero)")
27+
28+
//Prints: My favorite superhero is Iron Man
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2+
<playground version='5.0' target-platform='ios'>
3+
<timeline fileName='timeline.xctimeline'/>
4+
</playground>

0 commit comments

Comments
 (0)