You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while i < l and a[i] =='_':# Skips all underscores in the beginning and sets i to the index where the actual identifier without the underscores starts.
53
53
inc i
54
54
if i >= l:
55
55
result=""
56
56
return
57
57
j = l -1
58
-
while j >= i and a[j] =='_':
58
+
while j >= i and a[j] =='_':# Skips all underscores at the end and sets j to the index where the actual identifier without the underscores ends.
59
59
dec j
60
60
if j < i:
61
-
result=""
61
+
result=""
62
62
else:
63
-
result= a[i .. j]
63
+
result= a[i .. j]# Return the slice of the string (only the middle part) leaving the underscores at the end and at the start out.
0 commit comments