Created
December 14, 2016 19:33
-
-
Save debuging-life/3974ab6ba65bcbe9a2d5561e73cd455a to your computer and use it in GitHub Desktop.
lec-1-proworms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //: Playground - noun: a place where people can play | |
| import UIKit | |
| var str = "Hello, playground" | |
| var score = "hello gugu" | |
| score = "i lov gugu" | |
| // Constants | |
| let numberOfLife = 3 | |
| //numberOfLife = 5 | |
| // define multiple variables in one line | |
| var gp = 1, a = 34, b = "ok" | |
| var welcome = "Gugu i lov you alot" | |
| // Type annotation variables | |
| var bu: String | |
| bu = "Hey we lov each other" | |
| var dbls: Double = 123.23 | |
| var ๐ = "hey" | |
| ๐ = "sdlfj lkjsdf" | |
| // String interpollation | |
| var repeatMe = 10 | |
| print(" This is number: \(repeatMe)") | |
| var vls = UInt8.min | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment