You want to tell your experiment to record participant responses. If the response is "1" or "2", print OK. If the response is "NaN" (empty), print a "subject did not respond" message. If the response is anything else, print "subject pressed the wrong key".
Create a nested "if" statement in the above exercise. If the response is "1", print "Correct!". If the response is "2", print "Incorrect!"
Test out your script with various responses. Does it do what you expect it to?
Remember the exercise where you printed each letter of your name? Create a for loop that prints each letter without writing out all of the print statements manually.
Add an index counter and modify your loop to print the index number after each letter
Create a list of names "Amy","Rory", and "River". Create a nested for loop to loop through each letter of each name.
Add an index counter that gives the index of each letter for each name. The counter should start over at 0 for each name in the list.