Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@
// write your code here


/*:
Checkout the solution branch - git co solution or git checkout solution and then scroll back down to this very spot to see a link that directs you to the solutions to the above questions.

*/


//: [Solution](solution)

This file was deleted.

7 changes: 1 addition & 6 deletions MyPlayground.playground/contents.xcplayground
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='6.0' target-platform='ios' display-mode='rendered'>
<pages>
<page name='solution'/>
<page name='main'/>
</pages>
</playground>
<playground version='6.0' target-platform='ios' display-mode='rendered'/>
65 changes: 56 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Variables and Stuff
# Variables

![Oscar Wilde](http://i.imgur.com/Brz1JgI.jpg?1)
> Be yourself; everyone else is already taken. ~[Oscar Wilde](https://en.wikipedia.org/wiki/Oscar_Wilde)
> Be yourself; everyone else is already taken. -[Oscar Wilde](https://en.wikipedia.org/wiki/Oscar_Wilde)

## Overview

This Playgrounds lab, you'll create and print variables and constants that represent string and integer types.

## Learning Objectives

Expand All @@ -13,15 +17,58 @@

## Instructions

* Open up the playground file included with this repo and answer the listed questions (which you will find in the playground file) in order.
* There are no tests associated with this playground file.
* The following two screenshots are included to assist you in case the file doesn't open right to the main.swift file (which it should by default).
* Make sure you're working in the main.swift file (which you can view by pressing command + 0):
This is your first lab. Some labs require that you open up Xcode, other labs ask that you open up the playground file. What does that mean?

We introduced you to Xcode earlier in this course and we'll cover it in more detail in subsequent lessons. For now, know that this lab is asking that you open up a playground file, and we'll walk you through those steps. The playground file has _no_ tests in it.

First things first, you should clone down this repository. If you aren't familiar with how to do that or the process of submitting labs, review the earlier lesson that covered this.

After cloning down this project, you should locate the directory in Terminal or locating it through finder.

Example of locating the directory in Finder:

![dir](http://i.imgur.com/HBkk1u1.png)

Example of locating the directory in Terminal:

![dir2](http://i.imgur.com/awwhcyV.png)

Open up the `MyPlayground.playground` file. After doing so, you should see the following:

![play](http://i.imgur.com/M3afcpk.png)

If you see something like this instead, then you need to make sure Render Documentation is checked.

![instead](http://i.imgur.com/XxQjPu7.png)

You can check off the Render Documentation by opening up the Utilities pane (top right box thing) and then check it off like so:

![checks](http://i.imgur.com/jTLIJye.png)

Here's how you should be answering these various questions. We like to delete where it states

```swift
// write your code here
```

Then replace that section with what you think the answer is.. like so:

![answer](http://i.imgur.com/AELKrUs.png)

What exactly is a Playground file? A *playground* is an interactive Swift coding environment that evaluates each statement and displays results as updates are made, without the need to create project. Here's an example:

![play](http://i.imgur.com/WkyEc2G.png)

Notice how in the right pane, the playground file is able to compile and run this code *while* I'm typing it in. That's awesome and makes it a really great tool to learn how to code. As you move forward in your "learning how to program" career, if you're ever challenged with a topic or want to brush up on some material, create your own *playground* by launching Xcode and just start writing some code!


Now.. move forward and complete this lab! After you're done, make sure you save your changes and follow the correct steps to making a Pull Request. Review the earlier lesson that covered this process if you need a refresher.

Good luck.

![luck](https://media.giphy.com/media/cMnt7i2RykmpW/giphy.gif)

![main](http://i.imgur.com/odAU8pd.png)
* Make sure render documentation is checked off which you can do in the Hide or show Utilities pane in the top right:

![render](http://i.imgur.com/vCIhFbZ.png)



Expand Down