Compsci 06, Spring 2011, Dictionaries, April 20

Name____________________   net-id _________       

Name____________________   net-id _________       

Name____________________   net-id _________       
  1. Given a Python dictionary that maps keys to values where the Key is a String and the value is an integer, write code to create a reverse dictionary in which each value becomes a key, and the value associated with this new integer key is a list of the strings that originally had the integer as a value. For example:
      "apple"  : 3
      "pear"   : 2
      "cherry" : 3
      "berry"  : 2
      "orange" : 1
    
    --
    New dictionary:
    
       3 : ["apple", "cherry"]
       2 : ["pear", "berry"]
       1 : ["orange"]
    
    
    
    
    
    
    

  2. We will look at the APT MatrixShiftings What are two ideas/questions you have about the APT?
    
    
    
    
    
    
    
    
    
    
    
  3. We will look at the APT BunnyExam What are two ideas/questions you have about the APT?