# Beginning Swift 3 - Part 2: Variables | Ray Wenderlich

**URL:** <https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684>\
**Category:** 🎓 Courses & Articles\
**Created:** [September 13, 2016, 4:35pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684 "2016-09-13T16:35:41Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![vegetarianzombie](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/vegetarianzombie/32/94022_2.png) [@vegetarianzombie](https://forums.kodeco.com/u/vegetarianzombie)\
**Post date:** [September 13, 2016, 4:35pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/1 "2016-09-13T16:35:41Z")

</div>

Learn about variables in Swift 3.

* * *
 This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/4095-beginning-swift-3/lessons/2](https://www.raywenderlich.com/4095-beginning-swift-3/lessons/2)

---

<div class="post-metadata">

**Author:** ![akram84](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/akram84/32/81494_2.png) [@akram84](https://forums.kodeco.com/u/akram84)\
**Post date:** [September 15, 2016, 8:32am UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/2 "2016-09-15T08:32:35Z")

</div>

Thank you so much for the tutorial  
I just installed xCode 8 and I noticed that the results aren’t shown in the result section  
The example of answer += 1 shows error in my compiler  
It is a wonderful experience  
Thanks a lot

---

<div class="post-metadata">

**Author:** ![bobdela](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bobdela/32/110413_2.png) [@bobdela](https://forums.kodeco.com/u/bobdela)\
**Post date:** [September 21, 2016, 6:20pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/3 "2016-09-21T18:20:31Z")

</div>

I think there may be a few omissions in the playground solution for the video 2 challenge (viewed in raw):

Line 11 should be “myAge,” not “age.”

The solution for the problem that begins "Declare a variable of type Double called averageAge. " is missing.

Lines 20 and 21 should be Doubles.

Bob

---

<div class="post-metadata">

**Author:** ![lkknapp](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/lkknapp/32/108533_2.png) [@lkknapp](https://forums.kodeco.com/u/lkknapp)\
**Post date:** [October 29, 2016, 8:10pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/4 "2016-10-29T20:10:37Z")

</div>

Yep I noticed the same thing - Pretty cool though it demonstrates the problem of using integer math by mistake…

---

<div class="post-metadata">

**Author:** ![vegetarianzombie](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/vegetarianzombie/32/94022_2.png) [@vegetarianzombie](https://forums.kodeco.com/u/vegetarianzombie)\
**Post date:** [November 4, 2016, 3:52pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/5 "2016-11-04T15:52:53Z")

</div>

Thanks for the heads up … the solutions have been properly updated.

---

<div class="post-metadata">

**Author:** ![camunro](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/camunro/32/47430_2.png) [@camunro](https://forums.kodeco.com/u/camunro)\
**Post date:** [November 12, 2016, 10:58pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/6 "2016-11-12T22:58:05Z")

</div>

MISSING - The challenge asks for:  
“Declare a variable of type Double called averageAge. Initially, set it to your own age. Then, set it to the average of your age and my own age of 30.”

But the answer is not in the playground solution.

---

<div class="post-metadata">

**Author:** ![ssspkr139](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ssspkr139/32/60470_2.png) [@ssspkr139](https://forums.kodeco.com/u/ssspkr139)\
**Post date:** [December 24, 2016, 8:05pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/7 "2016-12-24T20:05:50Z")

</div>

HI I am trying to listen the video but video is freezing after 20sec and i tried to drag little bit forward it is playing again for 20sec and freezing this is very frustrating can someone help me please

---

<div class="post-metadata">

**Author:** ![vixette](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/vixette/32/109740_2.png) [@vixette](https://forums.kodeco.com/u/vixette)\
**Post date:** [December 26, 2016, 10:03am UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/8 "2016-12-26T10:03:59Z")

</div>

Hi. Same as me 😕

---

<div class="post-metadata">

**Author:** ![baldrich](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/baldrich/32/53320_2.png) [@baldrich](https://forums.kodeco.com/u/baldrich)\
**Post date:** [January 3, 2017, 2:20pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/9 "2017-01-03T14:20:06Z")

</div>

Same problem here - video is freezing. I am on a 1gb pipe so its not internet or browser…

---

<div class="post-metadata">

**Author:** ![whitmanrf](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/whitmanrf/32/67882_2.png) [@whitmanrf](https://forums.kodeco.com/u/whitmanrf)\
**Post date:** [May 22, 2017, 11:00pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/10 "2017-05-22T23:00:29Z")

</div>

Thanks very much. A great start. Where are the challenges after each video? The arrow takes me to the next lesson.  
Thanks

---

<div class="post-metadata">

**Author:** ![sedawk](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sedawk/32/81494_2.png) [@sedawk](https://forums.kodeco.com/u/sedawk)\
**Post date:** [June 15, 2017, 6:03pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/11 "2017-06-15T18:03:37Z")

</div>

Note that the solution to the second challenge is still missing.

---

<div class="post-metadata">

**Author:** ![senthiam](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/senthiam/32/69647_2.png) [@senthiam](https://forums.kodeco.com/u/senthiam)\
**Post date:** [June 26, 2017, 9:07pm UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/12 "2017-06-26T21:07:56Z")

</div>

Great video but the solution is missing the second challenge.

---

<div class="post-metadata">

**Author:** ![dma](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/dma/32/70085_2.png) [@dma](https://forums.kodeco.com/u/dma)\
**Post date:** [July 10, 2017, 12:28am UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/13 "2017-07-10T00:28:49Z")

</div>

The download for the materials are a mess as of 10 Jul 2017. The missing solution about adding and averaging age is not there despite what the developer says, and there is a secondary zip file containing the same OLD files in the download. Can someone actually look over this with some care and attention please!

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 10, 2017, 10:37am UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/14 "2017-07-10T10:37:36Z")

</div>

This course is currently being updated for Swift 4: [https://videos.raywenderlich.com/schedule?\_ga=2.125890829.1479623700.1499085332-1289947239.1467894995](https://videos.raywenderlich.com/schedule?_ga=2.125890829.1479623700.1499085332-1289947239.1467894995). We will fix all of the issues in the updated version. Thank you for your patience in the meantime with the whole thing - much appreciated!

---

<div class="post-metadata">

**Author:** ![shekkharan](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@shekkharan](https://forums.kodeco.com/u/shekkharan)\
**Post date:** [August 27, 2017, 7:27am UTC](https://forums.kodeco.com/t/beginning-swift-3-part-2-variables-ray-wenderlich/19684/15 "2017-08-27T07:27:51Z")

</div>

The video player sucks!
