Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift Basics Swift Operators Arithmetic Operators

Gurleen Singh
Gurleen Singh
1,452 Points

Getting an Error

http://prntscr.com/dtjjry Thats a screenshot off the problem, please help, I'm pretty sure its exactly the same as in the video, but still getting an error.

Gurleen Singh
Gurleen Singh
1,452 Points

Solved it, the problem was that 'let' started with a capital L and not lowercase. :)

5 Answers

Josue Gisber
PLUS
Josue Gisber
Courses Plus Student 9,332 Points

Good! Paying attention to details is very important in programming. Any typo can cause a bug.

Daniel Walker
Daniel Walker
2,031 Points

Good job debugging your own code!

The l in let is capitalized. It should be lowercased ~Let~ let

Montana Braswell
Montana Braswell
555 Points

hey guys, so I'm also getting an error.

//Binary Operators

let height: Double = 12 // in ft let width: Double = 10 // ft

let area = height * width // Area in sq ft // 1 sq meter = 1 sq foot / 10.764

let areaInMeters = area/10.764

this still gives me an issue with the " note: overloads for '/' exist with these partially matching parameter lists: (Double, Double), (Int, Int) let areaInMeters = area/10.764"

Any thoughts?

var height: Double = 12.0 var width: Double = 10.0 var sq: Double = 10.764

let area = height * width

let areaInMeters = area/sq