Suppose d has been assigned a dictionary with both string (…

 Suppose d has been assigned a dictionary with both string (str) keys and values.  Create a new dictionary dnew which has integer keys 1.., such that d[k] is the number of values in d that have length k.  For example, if d={“one”:”a”, “two”:”bb”, “three”:”cc”}, dnew should be {1:1, 2:2} since there is one value of length 1 (“a”) and two values of length 2 (“bb” and “cc”).