• + 1 comment
    def designerPdfViewer(h, word):
        # Write your code here
        a=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
        word=word.strip()
        d=dict(zip(a,h))
        m=0
        for i,j in d.items():
            for k in word:
                if k==i:
                    if j>m:
                        m=j
        return m*len(word)