Instructor: Joey Legere (email@example.com)
The primary objective of this course is to introduce students to programming in the Python language. No prior experience with computer programming is assumed. The first 4 weeks will cover the basics of Python and will be accompanied by weekly assignments. Week 5 will walk through constructing a basic cognitive experiment using the PsychoPy coder.
There will be no assignments after week 4, instead there will be a final project. Students are encouraged to think of their own ideas that will help with their personal research projects. examples include analyzing or cleaning up a complex dataset, creating an experiment, or a game.Lesson Structure
Lessons will be highly interactive. Students are expected to follow along with coding examples on their own laptops, or on the provided computers in the room. Each lecture will also have at least one in-class exercise (worth bonus marks to be added to the final grade).Topics
Note: this schedule is only tentative, and may be modified slightly as the course progresses.
Week 1: Fundamentals. Mathematical operations (addition, subtraction, mutliplication, division, exponentiation and modulus), elementary data types. Loops and control flow.
Week 2: Working with and converting between data types: integers, floats, strings, lists, dictionaries.
Week 3: Control flow (loops, if statements, functions). Introduction to the standard library (randomization, timing).
Week 4: Reading and writing from files. Data analysis and visualization.
Week 5: Cognitive experiments in Psychopy.
Week 6: No formal lesson, or catch up from previous weeks. Drop-in assistance with final projects.
There is no required textbook for this course. Bringing your own laptop to class isn't mandatory, but highly recommended.
All assignments will be automatically graded, but grades will be manually reviewed to ensure they are accurate. The weight from any missed in-class problems will be moved to the final project. The final project, which students will have the entire term to complete, is worth 40% of the final grade. This project may be proposed at any time--students are encouraged to start thinking about their project early in the term in order to receive feedback.Assigning of Grades
Note 1: The penalty for assignments submitted after the due date is 10% per day late. Application of this penalty is
at the discretion of the instructor.