Last active
July 15, 2024 18:17
-
-
Save TheMuellenator/febd64195828e681985a0746f0908f92 to your computer and use it in GitHub Desktop.
iOS repl.it - Dictionaries Challenge Solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Don't change this | |
var stockTickers: [String: String] = ["APPL" : "Apple Inc", "HOG": "Harley-Davidson Inc", "BOOM": "Dynamic Materials", "HEINY": "Heineken", "BEN": "Franklin Resources Inc"] | |
//Write your code here. | |
stockTickers["WORK"] = "Slack Technologies Inc" | |
stockTickers["BOOM"] = "DMC Global Inc" | |
//Don't modify this | |
print(stockTickers["WORK"]!) | |
print(stockTickers["BOOM"]!) |
alexnavter
commented
Oct 16, 2023
func exercise() {
//Don't change this
var stockTickers: [String: String] = [
"APPL" : "Apple Inc",
"HOG": "Harley-Davidson Inc",
"BOOM": "Dynamic Materials",
"HEINY": "Heineken",
"BEN": "Franklin Resources Inc"
]
//Write your code here.
stockTickers["WORK"] = "Slack Technologies Inc"
stockTickers["BOOM"] = "DMC Global Inc"
//Don't modify this
print(stockTickers["WORK"]!)
print(stockTickers["BOOM"]!)
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment