Introduction VII
Contents
Introduction VIIΒΆ
Within the seventh session weβll continue to explore the basic building blocks of python
, this and the next session
will contain exhaustive content aiming to provide you with a somewhat detailed understanding of central python
aspects. The aim is to get a good set of basic experience to then advance into more practical aspects, specifically evaluating how these things can be utilized within experiments
to collect data and their subsequent analyzes
. To nevertheless get some experience on the way, there will be some exercise at the beginning and throughout the session. Additionally, the homework assignments
will be made in a way that showcases some tasks that you might most likely encounter in real-life so that you get more practice in conducting them through python
.
Topics π‘π¨π»βπ«ΒΆ
In the following youβll find the objectives
and materials
for each of the topics weβll discuss during this session.
Introduction to Python - IIΒΆ
This session, weβll build upon the things learn last week and broader our capabilities in python
, focusing on indentation
and control flow & structures
.
Objectives πΒΆ
learn about
indentation
(some form ofcode structuring
)control
how ourcode
isexecuted
Conditionals
(if
-else
statements
)Iteration
(e.g.,for-loops
,while statements
, β¦)
Ask and answer questions
Have a great time
Materials πΒΆ
Please see the rendered version of the jupyter notebook
Introduction VII - Introduction to Python III in the ToC
on the left.
tasks for subsequent meeting π₯οΈβπ½πΒΆ
Homework assignment #5ΒΆ
Your fifth homework assignment will entail working through a few tasks covering the contents discussed in this session within a jupyter notebook
. You can download it here. In order to open it, put the homework assignment notebook
within the folder you stored the course materials
in, start a jupyter notebook server
as during the sessions, navigate to the homework assignment notebook
, open it and have fun! NB: a substantial part of it will be optional and thus the notebook will look way longer than it actually is.
Deadline: 12/01/2022, 11:59 PM EST
Prepare PsychoPy installationΒΆ
Also, in preparation for our switch to more applied things, starting with experiments in python
and thus endeavors in psychopy
, could you please create a new respective conda environment
(remember those?) via the following lines:
conda create -n psychopy psychopy
conda activate psychopy
pip install jedi psychtoolbox pygame pyo pyobjc python-vlc ujson
and then test if everything works via running psychopy
(type it and then press βenterβ) from within the new environment (make sure you did activate it via conda activate psychopy
)?