#Python "for loop" equivalent

1 messages · Page 1 of 1 (latest)

worthy thicketBOT
#

@worn bear has a question:

bryce________

whats the python equivalent to: for(int i = 1; i < s.length(); i++){

#

<@&987246964494204979> please have a look, thanks.

chilly marten
grave jetty
#

Well that was int i = 0, so it would really be range(1, len(s)) but you'd probably want to do for x in s, which starts at 0

chilly marten
#

ah well yes