uses the enumerate(string) to create a temporary sequence : Enumerate : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Enumerate »

 

uses the enumerate(string) to create a temporary sequence


dict = {}
string="1234"
for i,ch in enumerate(string):
    dict[i= ch
    
print dict



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Enumerate