Code Monkey home page Code Monkey logo

swift-functionlab-lab's Introduction

Function Lab

Thomas

Our greatest weakness lies in giving up. The most certain way to succeed is always to try just one more time. ~Thomas Edison

Overview

  • In this lab, you'll write and call functions.

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):

main

  • Make sure render documentation is checked off which you can do in the Hide or show Utilities pane in the top right:

render

View this lesson on Learn.co

View Function Lab on Learn.co and start learning to code for free.

swift-functionlab-lab's People

Contributors

annjohn avatar cordavi avatar jimcampagno avatar mdippery avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swift-functionlab-lab's Issues

Solution Lines 27-30 Question

If I leave name: out of the parentheses I get an error asking for it: Missing argument label 'name:' in call.

I copied the solution script exactly and it still doesn't work.

What might be the reason?

Thanks, Jarrod

Wording on number 5

"After you print the variable once, assign it to a new variable on the next line."

is this supposed to be "assign it to a new value on the next line"? or are we just supposed to make a new variable and then print that variable in the function too?

git push problem?

// ♥ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)

nothing to commit, working tree clean
[18:24:34] (master) swift-functionLab-lab-swift-intro-000
// ♥ git push
Enter passphrase for key '/Users/anastasiospapalias/.ssh/id_rsa':
ERROR: Permission to learn-co-students/swift-functionLab-lab-swift-intro-000.git denied to AnastasiosPapalias.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
[18:24:57] (master) swift-functionLab-lab-swift-intro-000
// ♥

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.