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 (retired) Collections What is a Dictionary?

CAN SOMEONE HELP ME WITH THIS TOO PLEASE???

IM SORRY FOR ASKING HELP MANY TIMES, BUT I AM 16 YEARS OLD AND I WOULD LIKE TO KNOW HOW TO FIX THIS TO BECOME A SWIFT CODER.

dictionaries.swift
var currencies = [ "US" : "Dollar", "UK" : "Pound" , "JP" : "Yen"]

2 Answers

CHI WAI YIP
CHI WAI YIP
10,438 Points

Try let instead of var. The task is asking for constant.

Jon Schenck
Jon Schenck
2,028 Points

You need to use a constant instead of a variable. Constants' values never change while variables' values can change. Instead of using var use let.