Quantitative Neurobiology

Notes, assignments, and code for NEUROBIO 735 (Spring 2024).

Class details:

1/11 – 4/17:
Tuesday, Thursday
3:00 – 4:30
301 Bryan Research Building

Syllabus

Exercises

Solutions

Book

Homework: Data structures, control flow, logic

Data Structures

  1. Create the string, "This is my test STRING." Create a string that takes only every third letter and makes all letters lowercase.

  2. Make a dictionary that contains the names of at least five species. The key should be the genus (not necessarily unique) and the value should be the species name.

  3. Create a tuple whose first entry is a list, second entry is a dictionary, and third entry is a string. Create a list whose first entry is the first item in each of these collections, second entry is the second item in each collection, etc., until one of the collections runs out of entries. (Hint: zip. You might also need to learn about “tuple unpacking.”)

Control flow, iteration, logic

Start with the string "it was the best of times, it was the worst of times" Write code that will create a new string with the vowels replaced as follows:

Original Replacement
a \u03b1
e \u03b5
i \u03b9
o \u03bf
u \u03c5