mirror of
https://gitlab.rlp.net/mobitar/julia_course.git
synced 2024-11-16 13:28:10 +00:00
Fix typos
This commit is contained in:
parent
05394cbd4d
commit
5278c18cdd
3 changed files with 11 additions and 11 deletions
|
@ -248,7 +248,7 @@ typeof(meaning_of_life)
|
||||||
|
|
||||||
# ╔═╡ 5e45b854-c173-452b-b62b-54037a3780fd
|
# ╔═╡ 5e45b854-c173-452b-b62b-54037a3780fd
|
||||||
md"""
|
md"""
|
||||||
## String operatorions
|
## String operations
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ 0596fe87-4201-476e-8e11-618c621c5474
|
# ╔═╡ 0596fe87-4201-476e-8e11-618c621c5474
|
||||||
|
@ -265,7 +265,7 @@ new_to_julia = "Hi, I am new to Julia!"
|
||||||
contains(new_to_julia, "Hi")
|
contains(new_to_julia, "Hi")
|
||||||
|
|
||||||
# ╔═╡ 943da836-384d-4774-aaf4-54c27feb53d8
|
# ╔═╡ 943da836-384d-4774-aaf4-54c27feb53d8
|
||||||
# Split on occurrences of the provided delimeneter (comma here)
|
# Split on occurrences of the provided delimiter (comma here)
|
||||||
split(new_to_julia, ",")
|
split(new_to_julia, ",")
|
||||||
|
|
||||||
# ╔═╡ a96f3ae9-12df-4df8-85da-09b9b1e47de1
|
# ╔═╡ a96f3ae9-12df-4df8-85da-09b9b1e47de1
|
||||||
|
@ -464,9 +464,9 @@ complex_function(1, 2, 3, 4)
|
||||||
md"""
|
md"""
|
||||||
Why can't we access the variable that we did define and use in the function? 😢
|
Why can't we access the variable that we did define and use in the function? 😢
|
||||||
|
|
||||||
It is because of the concept of *scopes*. The variable result is only defined inside the function and it is only accecable inside of this function (in the scope of the function), not outside it!
|
It is because of the concept of *scopes*. The variable result is only defined inside the function and it is only accessible inside of this function (in the scope of the function), not outside it!
|
||||||
|
|
||||||
`result` is called an *internal* variable. When you define a variable outside a function, it is called a *global* variable and is accecable everywhere.
|
`result` is called an *internal* variable. When you define a variable outside a function, it is called a *global* variable and is accessible everywhere.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ a6d882a0-c80e-4acf-b05b-c0ae120d698d
|
# ╔═╡ a6d882a0-c80e-4acf-b05b-c0ae120d698d
|
||||||
|
|
|
@ -53,7 +53,7 @@ What we did use until now are *positional arguments*.
|
||||||
|
|
||||||
You can declare *keyword arguments* in addition to positional arguments. Keyword arguments have to be named while calling a function (see below cells).
|
You can declare *keyword arguments* in addition to positional arguments. Keyword arguments have to be named while calling a function (see below cells).
|
||||||
|
|
||||||
Keyword arguments are declared after positional arguments and seperated from positional arguments with a semicolon `;`.
|
Keyword arguments are declared after positional arguments and separated from positional arguments with a semicolon `;`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ ae5ebe62-37bd-423d-a102-fbbec8de8e0f
|
# ╔═╡ ae5ebe62-37bd-423d-a102-fbbec8de8e0f
|
||||||
|
@ -113,7 +113,7 @@ You can also make all the arguments optional by providing default values for eve
|
||||||
md"""
|
md"""
|
||||||
Optional **positional** arguments have to be specified **at the end** (for calling the function).
|
Optional **positional** arguments have to be specified **at the end** (for calling the function).
|
||||||
|
|
||||||
Optoinal **keyword** arguments don't have to be specified at the end because the order of specifying keyword arguments while calling a function is not important.
|
Optional **keyword** arguments don't have to be specified at the end because the order of specifying keyword arguments while calling a function is not important.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ b5272b80-b013-460c-ae78-1b9a1a774c5c
|
# ╔═╡ b5272b80-b013-460c-ae78-1b9a1a774c5c
|
||||||
|
@ -297,7 +297,7 @@ md"""
|
||||||
# I/O
|
# I/O
|
||||||
I/O stand for input/output. In this section, we will learn the basics about reading and writing files.
|
I/O stand for input/output. In this section, we will learn the basics about reading and writing files.
|
||||||
|
|
||||||
I/O knowledge will especially help us to read some files containing data to analyse.
|
I/O knowledge will especially help us to read some files containing data to analyze.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ 274342cb-19a9-4e71-a23e-7c7da18a8022
|
# ╔═╡ 274342cb-19a9-4e71-a23e-7c7da18a8022
|
||||||
|
|
|
@ -47,7 +47,7 @@ md"""
|
||||||
# DNA analysis
|
# DNA analysis
|
||||||
The file `resources/DNA.txt` has only one line.
|
The file `resources/DNA.txt` has only one line.
|
||||||
|
|
||||||
Read the file and count the nucleotides 'A', 'T', 'G' and 'C' in this file. Calculate the occurancy percentage for each nucleotide.
|
Read the file and count the nucleotides 'A', 'T', 'G' and 'C' in this file. Calculate the occurrence percentage for each nucleotide.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# ╔═╡ 0bde137a-bc78-4204-971a-999c66eada47
|
# ╔═╡ 0bde137a-bc78-4204-971a-999c66eada47
|
||||||
|
|
Loading…
Reference in a new issue