Skip to content

Commit

Permalink
Use info box for learner objectives
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Jan 15, 2024
1 parent 5b356bd commit 7fc9b6b
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 23 deletions.
6 changes: 3 additions & 3 deletions docs/morning_session/the_way_of_the_program.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ Then in section 1.12, do exercises 1 to and including 5

!!!- info "Learning objectives"

* Create a Python script
* Run a Python script
* Use a text editor on an UPPMAX HPC cluster
- create a Python script
- run a Python script
- use a text editor on an UPPMAX HPC cluster

Read the UPPMAX documentation about text editors [here](http://docs.uppmax.uu.se/software/text_editors/).

Expand Down
12 changes: 9 additions & 3 deletions docs/morning_session/using_the_python_interpreter.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,27 @@ These exercises will ensure you are able to run a minimal Python program.

### Exercise 1: login to Rackham

* Learning objective: to be able to login to Rackham autonomously
!!!- info "Learning objectives"

- to be able to login to Rackham autonomously

Login to Rackham from your terminal.
This is described at the UPPMAX page 'Login to Rackham' [here](http://docs.uppmax.uu.se/getting_started/login_rackham/).

### Exercise 2: load the Python module

* Learning objective: to be able to load a Python version autonomously
!!!- info "Learning objectives"

- to be able to load a Python version autonomously

Load Python version 3.10.8.
This is described at the UPPMAX pages on Python [here](http://docs.uppmax.uu.se/software/python/).

### Exercise 3: write a 'Hello world' program

* Learning objective: to be able to run a minimal Python program autonomously
!!!- info "Learning objectives"

- to be able to run a minimal Python program autonomously

Start Python and write a 'Hello world' program.
This is described at the UPPMAX pages on Python programming [here](http://docs.uppmax.uu.se/software/python_programming/#use-the-python-interpreter)
28 changes: 19 additions & 9 deletions docs/morning_session/variables_expressions_and_statements.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
* Get the type of an object
* Create a variable
* Use a variable
* Practice converting an equation to Python code
* Find and use the operator for exponentiation
* Practice the modulo operator
* Practice converting a simple text question to Python code
* Learn how to ask a user for input
* Use input in a calculation

???- question "For teachers"

Expand All @@ -14,6 +20,10 @@
* Learners understand the purpose of variables
* Learners have obtained the data type of a variable
* Learners have heard about what a data type is
* Learners have practiced convert an equation and a text question to Python
* Learners have read on operators
* Learners have worked with the modulo operator
* Learners have written code that asked for user input

Lesson plan:

Expand Down Expand Up @@ -54,9 +64,9 @@ to Python code. We will discover the helpful modulo operator.

!!!- info "Learning objectives"

* Get the type of an object
* Create a variable
* Use a variable
- get the type of an object
- create a variable
- use a variable

Read the following sections of [How to Think Like a Computer Scientist: Learning with Python 3](https://openbookproject.net/thinkcs/python/english3e/index.html):

Expand All @@ -70,8 +80,8 @@ Then in section 2.14, do exercises 1 to and including 4.

!!!- info "Learning objectives"

* Practice converting an equation to Python code
* Find and use the operator for exponentiation
- practice converting an equation to Python code
- find and use the operator for exponentiation

Read the following sections of [How to Think Like a Computer Scientist: Learning with Python 3](https://openbookproject.net/thinkcs/python/english3e/index.html):

Expand All @@ -83,8 +93,8 @@ Then in section 2.14, do exercise 5.

!!!- info "Learning objectives"

* Practice the modulo operator
* Practice converting a simple text question to Python code
- practice the modulo operator
- practice converting a simple text question to Python code

Read the following sections of [How to Think Like a Computer Scientist: Learning with Python 3](https://openbookproject.net/thinkcs/python/english3e/index.html):

Expand All @@ -97,8 +107,8 @@ Then in section 2.14, do exercises 5 and 6.

!!!- info "Learning objectives"

* Learn how to ask a user for input
* Use input in a calculation
- learn how to ask a user for input
- use input in a calculation

Read the following section of [How to Think Like a Computer Scientist: Learning with Python 3](https://openbookproject.net/thinkcs/python/english3e/index.html):

Expand Down
20 changes: 12 additions & 8 deletions docs/morning_session/working_with_python_scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ In this session, we create and run some simple Python scripts.

### Exercise 1: create a Python script

- Learning objectives:
- to use a text editor in the terminal
- to create, edit and save a file in the terminal
- to create a trivial Python script to work on
!!!- info "Learning objectives"

- to use a text editor in the terminal
- to create, edit and save a file in the terminal
- to create a trivial Python script to work on

On Rackham, create a file called `hello_world.py`,
using a text editor or Linux commands.
Expand All @@ -55,17 +56,20 @@ Verify that the script has its contents saved.

### Exercise 2: run a Python script

- Learning objective: to be able to run a Python script.
!!!- info "Learning objectives"

- to be able to run a Python script.

Read the UPPMAX page on running a Python script, [here](http://docs.uppmax.uu.se/software/python/#running-python)

Run the Python script you just created.

### Exercise 3:

- Learning objectives:
- repeat creating a Python script
- to observe that an expression result is not shown on-screen by default
!!!- info "Learning objectives"

- rehearse creating a Python script
- to observe that an expression result is not shown on-screen by default

Of the Python book [How to Think Like a Computer Scientist: Learning with Python 3](https://openbookproject.net/thinkcs/python/english3e/index.html),
go back to section 1.12 and do exercise 6.
Expand Down

0 comments on commit 7fc9b6b

Please sign in to comment.