I am trying to force unwrap but, it doesn't work. I have also tried a different variant of unwrapping which uses, "let", but I am unable to unwrap it using print.
Note that, the linked answers did not work.
Any thoughts?
I am trying to force unwrap but, it doesn't work. I have also tried a different variant of unwrapping which uses, "let", but I am unable to unwrap it using print.
Note that, the linked answers did not work.
Any thoughts?
You created an array, to create a dictionary you have to change var dict = ["name: josh", "age: 40", "gender: male"]
with var dict = ["name": "josh", "age": "40", "gender": "male"]