i’m learning Julia through juliaacademy.com and i’m not getting past exercise 4.2.
4.1 I got it easy, but I ended up stalling right away. I’ve tried everything but it didn’t work at all.
if anyone can help me i will be very grateful.
You are creating a new Dict in every loop iteration - so you basically end up with a hundred dictionaries with one entry each.
What you want is to instantiate a Dict and then simply add key-value pairs to the existing single dictionary to end up with one Dict that has a hundred entries.
Have you looked at the manual section I linked above? You might be particularly interested in the line that references creating dictionaries from comprehensions