I have learned about the working of for loop and all. I decided to pass a double value inside the for loop. The code looks like:
name = 'dfsdf'
for index,string in name:
print index
When I run the code it give me error like
ValueError: need more than 1 value to unpack
When I have added a single value it works just fine. Why does it throws an error when I used two names? Can double values be passed with for statement in python?