def find(str, ch, start=0, end=None):
index = start
if end is None:
end = len(str)
while index < len(str):
if index > end:
break
if str[index] == ch:
return index
index = index + 1
return -1
Name:
Anonymous2011-07-27 6:24
What about keywords? Like (draw-circle O R :filled T :color +RED+) Can Python do keywords?
Python:
def find(str, ch, start=0, end=None):
index = start
if end is None:
end = len(str)
while index < len(str):
if index > end:
break
if str[index] == ch:
return index
index = index + 1
return -1
>>5
Both are terrible and harmful, their creator is a huge elitist visionary faggot that understands nothing about language design? I see no difference.