How to wrap each element in python list? -
For example, I have an array like this:
  ['1', ' 2 ',' 3 ',' 4 ']    And I have to wrap it like this:  
  {' profile ':' 1 ',' Profile    tried something like this with no luck:  
 < result = ['1', '2', '3' , '4'] Result = {'Profile' Div class = "post-text" itemprop = "text">  Creation  
  {'profile': '1', 'profile ':' 2 ',' profile ':' 3 ',' profile ':' 4 '}    is equivalent to Python-  
  {' Profile ':' 4 '}   , as explained, word Duplicate the Son can not be keys        & gt; & Gt; & Gt; ('Profile', '2'), ('Profile', '3'), ('Profile', '1' 4 ')]    
 
  
Comments
Post a Comment