GithubHelp home page GithubHelp logo

sergtsaeb / swift-arrayiterationlab-lab-ios-apply-000 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-students/swift-arrayiterationlab-lab-ios-apply-000

0.0 2.0 0.0 55 KB

License: Other

Swift 100.00%

swift-arrayiterationlab-lab-ios-apply-000's Introduction

Array Iteration Lab

Drawing

Excellence is never an accident. It is always the result of high intention, sincere effort, and intelligent execution; it represents the wise choice of many alternatives - choice, not chance, determines your destiny. -Aristotle

Overvuew

In this lab, you'll create, manipulate, and iterate over arrays.

Playground Files

  • There's something slightly different about this lab compared to other labs. It's asking that you open up the .playground file included with this repository. In particular, the ArrayIteration.playground file.

  • When you open a playground file, it should look like this:

thing

  • You will be met with a numbered list of questions. These questions require answers! You will write your code below each question. Lets pretend that the first question here asked me to create a function called iLoveFood() which prints out the following statement, 'Food is great!'.

foodisgreat

  • Once you've gone through and answered all of the necessary questions within the playground file, you can now submit a pull request (Don't forget first to git add, git commit and git push your changes). There are no tests associated with the playground files.

  • 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

  • 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!

Learning Objectives

  • Create for-in loops
  • Use enumerate() to get the index and element from the array
  • Create Array variables and constants and know how to use them
  • Know how to create an Array of Int's and String's
  • Create functions that take in Array's as arguments
  • Access elements of the Array using subscript syntax
  • Change elements at a specific index using subscript syntax

Instructions

  • Open up the playground file and answer the listed questions writing your code below each question.
  • There are no tests associated with this playground file.
  • Make sure render documentation is checked off which can be done in the Hide or show Utilities pane.
  • Render Documentaiton should be checked by default, but you can check to see that it is here:

doc

  • This allows for the questions to look all pretty in larger font that disallows you to mistakenly change the questions when you just mean to be writing code. You can include Markdown within a playground file which is pretty cool, it allows us to format the file in a clean way that allows you to just focus on the code.

View Playgrounds Lab: Iterating Over an Array on Learn.co and start learning to code for free.

swift-arrayiterationlab-lab-ios-apply-000's People

Contributors

annjohn avatar dennisvera avatar ianrahman avatar jimcampagno avatar pletcher avatar sergtsaeb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.