From d9ba2c43f6cbce612020feae2d978385a0b5f03c Mon Sep 17 00:00:00 2001 From: Matt Hanlon Date: Wed, 31 Mar 2021 13:43:51 +0100 Subject: [PATCH] Finished ythe constants homework. --- .DS_Store | Bin 0 -> 6148 bytes .../Contents.swift | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..d3a3084efaf1fbf70260b021bd7515de3cda3b19 GIT binary patch literal 6148 zcmeHKu}%Xq41F#g3M?HNGqQlxjqxbgjfqN#5z3*0bnR8p4oD35M{N868#8~wPw*T^ zRja~y2#_r~FLCTxd6CX%0McI+J)jGqLse{TbNE7ZUv)!T$d3k>NINNzWZYEE$%riLZzBQF+cDurv1YX6(8E^)ifyNjR zJGrylSO!1X8E^*vDg*j`2vo%^VQm;c9UNi{K-AyJD4c6Ap)nz0masPD4n-`KXrYo? z46$(9L-NZK)`k`iNzI3(%#u13iP?F6i0+Wg&_`#$8CYjv%a&cO|AX)Q|MehWIRnnX zzhXez`7rPEN~yMPTuy6kpk7i{)UP&NhHw%~F@3cZ?@^=B9&|#?64r*aQ2a+A(%^$L I@S_ZT0=3~>G5`Po literal 0 HcmV?d00001 diff --git a/Lab - Constants and Variables.playground/Pages/1. Exercise - Constants.xcplaygroundpage/Contents.swift b/Lab - Constants and Variables.playground/Pages/1. Exercise - Constants.xcplaygroundpage/Contents.swift index 8721318..8d33f04 100644 --- a/Lab - Constants and Variables.playground/Pages/1. Exercise - Constants.xcplaygroundpage/Contents.swift +++ b/Lab - Constants and Variables.playground/Pages/1. Exercise - Constants.xcplaygroundpage/Contents.swift @@ -3,13 +3,12 @@ Declare a constant called `friends` to represent the number of friends you have on social media. Give it a value between 50 and 1000. Print out the value by referencing your constant. */ - +let friends = 500 /*: Now assume you go through and remove friends that aren't active on social media. Attempt to update your `friends` constant to a lower number than it currently is. Observe what happens and then move to the next step. */ - /*: Does the above code compile? Why not? Print your explanation to the console using the `print` function. Go back and delete your line of code that updates the `friends` constant to a lower number so that the playground will compile properly. */