Learning Pathway Introductory Python
Date: No date given
This is an introductory course of Python, as it was taught in Avans Hogeschool in the Netherlands.
Keywords: python, real-course
Learning objectives:
- Correctly evaluate expressions containing
and
andor
. - Explain key differences between integers and floating point numbers.
- Explain key differences between numbers and character strings.
- Explain what for loops are normally used for.
- Explain why programs need collections of values.
- Learn about
check_call
andcheck_output
and when to use each of these. - Learn about the potential pitfalls of glob
- Learn how sys.argv works
- Read data from a file
- Read it's output.
- Recap all previous modules.
- Run a command in a subprocess.
- Run our software from the command line.
- Set up a Conda environment for our software project using
conda
. - Set up a Python virtual environment for our software project using
venv
andpip
. - Trace the execution of a simple (unnested) loop and correctly state the values of variables in each iteration.
- Translate some known math functions (e.g. euclidean distance, root algorithm) into python to transfer concepts from mathematics lessons directly into Python.
- Understand the fundamentals of object assignment and math in python and can write simple statements and execute calcualtions in order to be able to summarize the results of calculations and classify valid and invalid statements.
- Understand the structure of a "function" in order to be able to construct their own functions and predict which functions will not work.
- Use
with
to ensure the file is closed properly. - Use argparse to make it nicer.
- Use built-in functions to convert between integers, floating point numbers, and strings.
- Use exercises to ensure that all previous knowledge is sufficiently covered.
- Use glob to collect a list of files
- Use the CSV module to parse comma and tab separated datasets.
- Write a simple command line program that sums some numbers
- Write conditional statements including
if
,elif
, andelse
branches. - Write for loops that use the Accumulator pattern to aggregate values.
- Write new data to a file
- Write programs that create flat lists, index them, slice them, and modify them through assignment and method calls.
- catch an exception
- raise your own exception
Event types:
- Workshops and courses
Sponsors: Avans Hogeschool, The Carpentries
Activity log