Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Dictionary with loop and squared numbers

$
0
0

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.

Exercises
4.1 Loop over integers between 1 and 100 and print their squares.

4.2 Add to the code above a bit to create a dictionary, squares that holds integers and their squares as key, value pairs such that

squares[10] == 100

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles