ulvis.paste.net

Paste Search Dynamic
Recent pastes
flip
  1. def flip(L):
  2.     for i in range(0, (len(L)//2)):
  3.         L[i],L[-i-1] = L[-i-1],L[i]
  4.  
  5. def invert(L):
  6.     D={}
  7.     for i in range(len(L), 0, -1):
  8.         D[L[i-1]] = i-1
  9.     return D
  10.  
  11. def vowelIndex(S):
  12.     D={}
  13.     for w in S.split():
  14.         D.update({w:0})
  15.         for c in w.lower() :
  16.             if c in 'aeiou':
  17.                 D[w]+=1
  18.     return D
Parsed in 0.003 seconds