hi,
i want to know what is wrong about line no.7 & 8 . in the code below pleasse give an alternate method to im oplement this -
for j in c:
-
for x in range(0,15,1):
-
try:
-
print "try1", ,j.contents
-
y=x*2
-
print y
-
print j.contents[y]
-
cusine[x]=j.contents[y]
-
print "try"
-
except:
-
try:
-
print cusine
-
except:
-
print "er"
First of all, you have not used CODE tags, but I've fixed that. Your little numbering scheme doesn't work at all. Just paste the code surrounded by CODE tags. Instructions on on the right hand side of the page while posting or replying.
Secondly, you have not given us enough to go on. What should it do? What's in c that you are trying to iterate over? What does the object j look like? Etc., etc.