Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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