Skip to content

Commit da9728f

Browse files
committed
Finished Week 3 Slides
And a little of the tutorial
1 parent 2c87aea commit da9728f

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed
311 KB
Binary file not shown.
311 KB
Binary file not shown.
745 KB
Binary file not shown.

Week 3/Week3.jl

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,35 @@ using Markdown
55
using InteractiveUtils
66

77
# ╔═╡ 6957aa70-95cd-11ec-3fa2-ed38d0d958be
8-
for x = 1:100
8+
# Create a for loop that sums the numbers 1:n in each iteration, where n is a value from 1 to 20
9+
10+
for x = 1:20
11+
println(sum(1:x))
12+
end
13+
14+
# ╔═╡ d553f3b1-83f5-4234-9dda-f156c1b80e7b
15+
# Create a for loop that sums the numbers 1:n in each iteration, where n is a vlaue in the range 1, 3, 5, ..., 17, 19
16+
17+
for x = 1:2:19
18+
println(sum(1:x))
19+
end
20+
21+
# ╔═╡ 0715faa1-4f68-4507-8d41-5b8cb5112c55
22+
# Create a for loop that prints out each character in a string
23+
24+
for letters in "A simple string of characters"
25+
println(letters)
26+
end
27+
28+
# ╔═╡ a936be12-a1ff-4961-9404-ace010407d85
29+
# Create a for loop that sums the numbers 1:n in each iteration, where n is a vlaue in the range 1, 3, 5, ..., 17, 19
30+
31+
for x = 1:2:19
932
println(sum(1:x))
1033
end
1134

1235
# ╔═╡ Cell order:
1336
# ╠═6957aa70-95cd-11ec-3fa2-ed38d0d958be
37+
# ╠═d553f3b1-83f5-4234-9dda-f156c1b80e7b
38+
# ╠═0715faa1-4f68-4507-8d41-5b8cb5112c55
39+
# ╠═a936be12-a1ff-4961-9404-ace010407d85

0 commit comments

Comments
 (0)